Skip to main content

Questions tagged [chmod]

chmod is used to change the commonly used read, write, and execute permissions on files. It can change these permission bits for the file owner, the file's group owner, and everyone else. It can also change the more esoteric ‘permissions’ (attributes, reall) like set-user-ID, set-group-ID, and sticky bits.

-4 votes
1 answer
56 views

What is the difference between chmod 755 and chmod 775?
Samuel Ghiday's user avatar
0 votes
0 answers
41 views

I'm a student learning UNIX permissions and scripting on macOS. I created a short script that makes a file and applies chmod 640. However, a user in the same group cannot read the file. Here is the ...
Mamoona's user avatar
0 votes
1 answer
126 views

Info I have 2 remote machines, both are Linux and same OS version. When I tried to SSH to the machine as one of the user inside via public key, machineA works but machineB get stucked after offerring ...
Ronald Koh's user avatar
0 votes
2 answers
121 views

So there is a user that was created by root, and it pretty much has access to most/all directories on the system, we want to use this user only for ftp via lftp to read a certain file on the server ...
Navid Taghavi's user avatar
-1 votes
2 answers
427 views

To make a shell script executable, there seems to exist three options: Option 1: chmod +x script.sh Option 2: chmod a+x script.sh Option 3: chmod a+rx script.sh Here are two questions. Q1. What does ...
jsx97's user avatar
  • 1,387
0 votes
0 answers
113 views

I installed texlive as usual in /usr/local/texlive/2025. When installing I typed umask 0027 prior to each command (./configure, make...), hoping that the resulting files would have root as owner and ...
Alexander Wittmann's user avatar
4 votes
1 answer
90 views

In Classic Shell Scripting from O'Reilly, Arnold Robbins and Nelson H.F. Beebe write the follwing example: $ umask 023 $ rm -f foo $ cp /bin/pwd foo $ ls -l /bin/pwd foo -rwxr-xr-x 1 root root ...
Enlico's user avatar
  • 2,362
8 votes
5 answers
5k views

I hear that chmod 777 is a horrible idea. However, nobody else is ever going to use my system (and this is a quite common scenario for a lot of *nix systems). Why shouldn't I allow everything?
stickynotememo's user avatar
0 votes
1 answer
89 views

I have the following simple script that changed ownership on folders more hola_config.sh #!/bin/bash chown -R hola:pola /home/darna chmod -R 775 /home/darna in /etc/sudoers I added the following ( ...
yael's user avatar
  • 14k
0 votes
0 answers
33 views

I am an unpriviledged user A in the same group G as another unpriviledged user B. We want to share a directory. I want to create a shared folder, be it /tmp/shared. How do I set its rights? Seems I ...
Bubaya's user avatar
  • 141
0 votes
1 answer
279 views

I have up to terabytes of data (a large number of smaller files) that could contain wrong owner, group or permissions. To repair that we had a script doing sudo -n chown -R user:group "/path"...
jan's user avatar
  • 105
1 vote
2 answers
202 views

Could someone explain this? john@john-pcRefs:~/pCloudDrive/someFolder$ ls -al total 16 drwxr-xr-x 2 john john 4096 Jan 11 2022 . drwxr-xr-x 4 john john 4096 Jan 11 2022 .. -rw-r--r-- 1 john john ...
Zlotz's user avatar
  • 123
1 vote
2 answers
188 views

Is it possible to store untrusted files in Linux safely? My assumption is that I would create a new user to store them and run: chmod rw------- <directory> However, is there anything else I can ...
Kitty Cat's user avatar
  • 181
0 votes
1 answer
98 views

I am having a problem utilizing a mounted drive on my Raspberry Pi 2B running Diet Pi. dietpi@DietPi:/media/dietpi/Other$ sudo chmod 666 -R /media/dietpi dietpi@DietPi:/media/dietpi/Other$ touch text....
SpreadingKindness's user avatar
0 votes
1 answer
45 views

I was trying to use an USB-stick in Linux and it didn't go as expected: I had already created a mountpoint (/mnt), found the device of the newly inserted USB-stick (/dev/sdb1) and mounted it: # ls -l /...
bakunin's user avatar
  • 793

15 30 50 per page
1
2 3 4 5
42