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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
39 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
2 answers
117 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
0 votes
0 answers
110 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
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
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
1 vote
2 answers
199 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
0 votes
1 answer
97 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
125 views

What does the following command do? sudo chmod -R a=,a+rX,u+w,g+w /data I understand that it changes permissions, but what exactly and how?
GaurangiS's user avatar
0 votes
3 answers
115 views

Say some sysadmin has no problem with their users reading the files in /sbin, but doesn't want them running them. Take for example /sbin/initOne rebellious user used ld.so /sbin/poweroff instead. ...
rando's user avatar
  • 125
0 votes
1 answer
345 views

I have a folder under /mnt/ with drwxrwxrwx permissions and under root:root I then mount a USB drive (exFAT) to this folder and it becomes drwxr-xr-x The issue is that now I cannot scp to that folder ...
Duxa's user avatar
  • 103
0 votes
3 answers
102 views

I'm trying to copy a folder (SRC) containing some files and subfolders. The content and SRC itself have setgid bit enabled (that is the s in place of the x in the group triplet). Furthermore, the ...
user9952796's user avatar
5 votes
1 answer
704 views

I have script that can be runned from different users on the same machine. This script should write logs to the same file on every run. Minimal version of script: #!/usr/bin/env bash ...
armoken's user avatar
  • 53
0 votes
1 answer
503 views

I have a dual boot system (Windows 10/Archlinux) and I have created a NFTS partition which is mounted at startup via /etc/fstab so I can access it from both OS'es. The fstab file shows that the ...
JulioOAO's user avatar
5 votes
3 answers
2k views

I know that mounting a drive with "rw" would mount the file system as read/write, but what does that even mean? What's the difference between setting read and write via chmod?
Noobman's user avatar
  • 63
0 votes
1 answer
84 views

My task was to configure a directory so that users in a group could only delete files they own. I used chmod 1771 RandD, as suggested by lab instructions, to accomplish this. When running ls -l, the ...
user avatar
0 votes
1 answer
710 views

I recently had a login loop that kept sending me back to the login screen no matter how many times I entered the correct password. I decided to login accessing the terminal directly by pressing cntrl+...
Ash's user avatar
  • 195
1 vote
1 answer
52 views

I'm copying a bunch of files to a filesystem that doesn't support permissions. however, I will need to copy them to another filesystem which does support permissions a few years from now. at that ...
Behrooz's user avatar
  • 2,508
0 votes
0 answers
273 views

I am running Linux Ubuntu 20.04 and for some reason unknown to me, one of my storage drives suddenly has changed ownership to root and all file permisions are read/write/execute for all users. A ...
UsernameError's user avatar
0 votes
1 answer
120 views

I am making 3 sites in Drupal and need to frequently change the settings.php file in each website folder. This file is read-only for security reasons by default, so before I can edit it, I use: chmod ...
GeorgeCiesinski's user avatar
3 votes
2 answers
1k views

Anyone know why rocky can't write to /tmp/afile? Giving rocky permission as an other user with chmod o+w doesn't seem to work either 🤔 I updated the acl with: setfacl -m u:rocky:rw /tmp/afile id as ...
Newbie's user avatar
  • 33
0 votes
0 answers
1k views

I am using Nginx to serve static files from server. Static file is located in root folder, /server/cdn. I give all permission to this folder with sudo chmod 777 -R server command. Also I changed the ...
Alok Prakash's user avatar
0 votes
1 answer
60 views

I was going through the amazing book The Linux Programming Interface. In that chapter 15, section 15.4 page no 304, it is written that: For this reason, when an unprivileged process (one that doesn't ...
arka's user avatar
  • 253
1 vote
1 answer
587 views

I am setting SUID for a new user tommy to run the same commands as root but it goes down like this: [root@192 ~]# useradd tommy [root@192 ~]# su - tommy [tommy@192 ~]$ chmod u+s /usr/bin/ls chmod: ...
Navdeep Singh's user avatar
1 vote
1 answer
1k views

There are two accounts user1 and user2. I wish to share and give rwx access to my user1 /home/user1/Documents/ folder with user2. To do this, I have made a new group called sharedDocs. These are the ...
0xheartcode's user avatar
0 votes
0 answers
145 views

(macOS Ventura - MacBook Pro M1) I have deleted Time Machine backup file manually!! (my bad). Now I am left with files in my .Trashes folder that I cannot delete, no matter what I try. I have enabled ...
cem ozel's user avatar

1
2 3 4 5
13