21 points

The long reply on how to change file ownership when it could just be chown -R andrew /pictures

permalink
report
reply
26 points
*
Deleted by creator
permalink
report
parent
reply
11 points

In which case you could also go right-click -> properties -> security -> advanced -> click change where it lists the owner.

It’s not as quick but hey, mouse-driven UI exists.

permalink
report
parent
reply
2 points
*
Deleted by creator
permalink
report
parent
reply
5 points

I think I had this guy’s exact issue and maybe even stumbled upon his comment in that Microsoft support forum thread. It looks very familiar, but I could have just seen the meme before.

My problem was that I needed to do this for 100+ files, so using the UI individually for each file was out of the question. The eventual solution I found was in this tutorial for adding a context menu entry that changes folder/file ownership recursively. It’s been very useful!

permalink
report
parent
reply
2 points

Ah, ACLs, had the pleasure of working with these again last weeks.

It gets really curious when even the Arch wiki doesn’t really know what’s going on (talking about mask and effective permissions):

The factual accuracy of this article or section is disputed.

Reason: The original note about the --mask option (which was taken from setfacl(1)) was determined as inaccurate, but the new note does not seem correct either. See the talk page for details.

From trying, I can confirm that the info presented further down is wrong.

Once you read what it actually does and why it’s the way it is, it makes more sense - not that I remember it now - but at least there was a coherent design decision behind it

permalink
report
parent
reply
4 points
*

The fact that Andrew might have to run this at all means Windows (or possibly the manufacturer of his camera) has fucked up. He should not need to learn about this to use his files. Obviously he shouldn’t have permissions to system files but that’s clearly not what he actually wants.

permalink
report
parent
reply
1 point
*

Windows defaults to giving a user access to common folders like a desktop, pictures, etc. Most never need anymore access to internal folders.

The fact that Andrew has the permissions settings open enough to discover “owner” but doesnt understand what any of it is means and instead launched a “don’t tread on me” screed about his “dominion of all things mine” implies that he fucked up, not Microsoft.

permalink
report
parent
reply
11 points

Pebkac. Gui equivalent of chown perfectly working on windows and supports recursing into directories. If the questioner doesn’t know how to login as an admin they miss some absolute basic computer usage knowledge, and a general help forum thread wont help them.

permalink
report
reply
-3 points

Strong Disagree, the GUI equivalent of chown is a bizarrely long series of clicks that less knowledgeable users will easily get confused doing.

permalink
report
parent
reply
5 points

I never said it’s good ux, but it’s working

permalink
report
parent
reply
-4 points

You described it as pebkac - it isn’t - it’s an OS design issue.

permalink
report
parent
reply
8 points
*
Deleted by creator
permalink
report
parent
reply
3 points

Not to mention there is no admin anymore, it’s essentially a sudo style with it popping up asking are you sure.

This though really reeks of their son dragged and dropped their old files onto a new computer and didn’t set the NTFS permissions, and purposely set them up as a non admin so they wouldn’t bother them with “I got a new virus”. When I have an elderly relative ask for me to set up their computer I don’t give them admin rights

permalink
report
parent
reply
159 points

Andrew is not very smart. Windows isn’t very good, but he is very clueless. There are legitimate things to complain about, but Andrew just complains.

permalink
report
reply
80 points
*
Deleted by creator
permalink
report
parent
reply
26 points

Windows permissions can be tricky… I’ll give them that. A lot of the tools Microsoft provides are not very straightforward.

However, PowerShell and tools from Sysinternals suite, or open source tools as well, make it a lot easier.

Managing permissions on Linux, especially if doing the ACL thing, can be complicated too. I’ve really never ran into many permission issues myself. psexec has been helpful too when needing to access things as the SYSTEM user and not get those stupid prompts asking me to change permissions for protected folders.

permalink
report
parent
reply
19 points

Yeah like, complain about the one thing MS is finally improving in recent years, clamping down on non-admin users and non-admin permissions.

permalink
report
parent
reply
48 points

I think Andrew might be a lawyer.

My roommate for a couple years in college was pre-law, and did some internships after graduation but before gaining his own law degree. He mentioned at one point how absolutely and hilariously pervasive it was at the firm he was working for attorneys to just run screaming to IT every single time literally anything was even the slightest bit inconvenient or obtuse (to their understanding). Part of it was the logic of “I bill clients at $800/hr, I am not spending my time to resolve whatever this hiccup is”, but part of it was absolutely also some bullshit power dynamics.

permalink
report
parent
reply
34 points

Worked in IT for over a decade, lawyers are the fucking. worst.

permalink
report
parent
reply
29 points

I see your lawyers and I raise you doctors…

permalink
report
parent
reply
-15 points
*

I was married to a lawyer for years. They have to bill somewhere from 1700-2200 hours a year to stay on partner track. And they can’t bill every hour that they’re working (although they can double up sometimes by using the minimum 2/10ths of an hour). My sympathy is with the lawyer. It’s not a power dynamic, it’s how the firm makes money and what you’re there to do.

permalink
report
parent
reply
13 points

My brain read that in John Oliver’s mocking voice. xD

permalink
report
reply
1 point

French or standard?

permalink
report
parent
reply
61 points

“I shouldn’t have to use permissions or sudo, just all root all the time”

permalink
report
reply
32 points

“Real Men Run As Root”

https://www.garyshood.com/root/

permalink
report
parent
reply
5 points

I don’t run as root because I’ve always been told I shouldn’t. I don’t know enough about anything to be contradicting stuff like this. It has always seemed weird to me that we don’t run as root and then just sudo everything, though.

What is the reason we don’t run as root?

permalink
report
parent
reply
5 points

Because you might accidentally do something which breaks the system, or you might run a program which does something malicious without your knowledge.

By gating dangerous (or protected for any other reason) commands behind sudo, you create a barrier which is difficult to accidentally cross

permalink
report
parent
reply
1 point

You’re not supposed to “sudo everything” though. It’s mostly for changing the system configuration (editing config files in /etc/, running your system package manager etc.). It shouldn’t be a “oh, I got a permission error, better sudo the same command again olol”

permalink
report
parent
reply
13 points

What is the reason we don’t run as root?

We are human and make mistakes. Not running as root means the computer will ask us to confirm when we are about to do something major (like a software update, or formatting a partition). This reduces the chance of making big mistakes. (But I don’t see why VLC shouldn’t be able to run as root, if the user so desires.)

permalink
report
parent
reply
3 points
*

A big part of it comes from the security model and Linux historically being a multi-user environment. root owns the root directly / which is where all of the system files live. A normal user just has access to their own home directory /home/username and read-only access to things the normal user needs like the /bin where programs are stored (hence /bin/bash in lots of bash scripts, it tells the script what program to run the script from)

Because of this model, a normal user can only mess up their own files, while root can mess up everyone’s files and of course make the system non-bootablem. But also you can have user Bob signed in and doing stuff but unable to access user Alice’s files, and user Alice can be doing stuff and even running the same programs that user Bob is running (since it’s read only there’s no conflict) and then the administrator can log in as root to install something because they got a ticket to install suchandsuch for soandso.

Back to your point with sudo, sudo is Super User Do, so you are running a single command as root. By running it as root you can potentially be messing up with Alice and Bob might be doing, and most importantly whatever you are running with sudo can potentially affect any file on the computer. So if you run the classic rm -rf / it will delete every file that the user has write access to, so if bob runs it it’ll delete all of /home/bob/ but Alice will be unaffected, and the admin can still log in as root to do stuff. But if you run it as root you’ll quickly find the server unable to boot and both Alice and Bob will be very upset that they can’t access the server or their files

If you host a website you’ll generally take advantage of this by giving the www folder read-only access so that web users can only see webpages and can’t start reading random system files, or for server software you can create a dedicated user to run that server software as, so if someone were to somehow exploit a vulnerability and gain access to that server user they can only mess up the software and no system files

permalink
report
parent
reply
2 points

Real superuser allow every programs and services run as root

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 5.1K

    Monthly active users

  • 1.5K

    Posts

  • 34K

    Comments