this post was submitted on 02 Jul 2023
370 points (96.7% liked)

linuxmemes

20688 readers
1233 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
370
sudo touch grass (lemmy.world)
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 

Username is not in the sudoers file. This incident will be reported.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 25 points 1 year ago (3 children)

The explanation is most likely incorrect though. A more obvious cause of this error is that the current working is the root directory (/) and that they’re logged in as a non-root user, thus trying to create the file /woman without sufficient permissions.

[–] [email protected] 9 points 1 year ago (1 children)

POV
YOU ARE A LINUX USER ~/s~ ^also^ ^anti-meme^ ~lol~

[–] [email protected] 5 points 1 year ago* (last edited 1 year ago) (2 children)
[–] cyanarchy 3 points 1 year ago (1 children)
[–] [email protected] 2 points 1 year ago (1 children)
[–] cyanarchy 2 points 1 year ago

STOP

Stallman-Torvalds Operating Paradigm

[–] [email protected] 2 points 1 year ago

POV: You are RMS

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago) (1 children)

There are other directories where it can happen, and root is not the only one of them.

There are also directories that you cannot read sometimes, like /var/lib/docker/volumes if you use docker

[–] [email protected] 5 points 1 year ago (1 children)

Sure, but in this case the bash prompt tells us that it’s located in the root directory.

[–] [email protected] 3 points 1 year ago

Oh, silly me :3

[–] [email protected] 1 points 1 year ago

Technically he is also wrong about what touch does. The purpose of touch is to update the timestamp of a file and only if the file doesn't exist, the file gets created.