Questions tagged [sticky-bit]
The sticky-bit tag has no summary.
27 questions
2 votes
2 answers
239 views
Possible to apply sticky bit effects to a group rather than user?
I've been reading up on the "sticky bit" and it's almost what i want… but not quite. Background I'm managing a small JupyterHub instance with three courses and an instructor for each course. ...
1 vote
0 answers
190 views
Documentation for /tmp's default permissions
Is there any documentation for the default permissions of the /tmp folder on *nix, in particular Linux? (Or perhaps /tmp doesn't have specified default permissions?) Background: I'm trying to ensure ...
0 votes
1 answer
89 views
Sticky bit doesn't allow to delete or rename a file within a directory
As shown below, on my Ubuntu system, carlo directory has the sticky bit permission set. It contains the file file1 owned by user lab. lab@ubuntu:~$ ll | grep carlo drwxrwxr-t 2 ubuntu ubuntu 4096 ...
1 vote
1 answer
108 views
setuid root problem with sticky bit: curl can't write to a new/empty directory in /tmp [duplicate]
I'm carrying out a one-off configuration operation which requires a remote client to communicate with a remote server. The client runs Apache, which runs a configure binary, which fetches various ...
0 votes
1 answer
90 views
Why is the sticky bit mentioned twice in chmod but only once in the ls output?
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 ...
0 votes
0 answers
49 views
Set group and mod of a new directory
I try to set for NEW created files/directories in /home/test: group to "test" right to "770" This works for the group (1). chown :test /home/test chmod g+s /home/test But I do ...
1 vote
2 answers
4k views
sticky bit on files and directories
I've always heard that sticky bit should be only used with directories, and I understand that, but what is the meaning if it is applied to a file. If I set the sticky bit to a file and do an ls -la I ...
0 votes
1 answer
852 views
Inherit ownership and permissions to directories and files
I have a directory test with the owner user:group and 770 as permissions. I want, that every directory and file within test do have the same specifications. I tried chmod g+s,u+s test, which partially ...
1 vote
2 answers
3k views
find command - list all directories with a set sticky bit
This doesn't work find / -type d -perm 1000 The problem is, that it matches only the exact permission (1000), but I only want to find out if the sticky bit is set or not. I don't care about the other ...
3 votes
2 answers
1k views
Not able to give write permission to other user with ACL or chmod
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 ...
1 vote
0 answers
223 views
Ubuntu user not affected by sticky bit on Ubuntu 22.04
I experience a strange behaviour in stick bit on /tmp directory and flock command. Tried with two cases: Case 1: create file with Ubuntu user, root have no access to the created file. ubuntu@:~$ touch ...
4 votes
1 answer
569 views
How to create a directory, where users can delete only their own files, but one user can delete anyone's files?
Consider the following setup: # two users in groups sales useradd edwin useradd santos groupadd sales usermod -aG sales edwin usermod -aG sales santos # two users in group account useradd serene ...
-2 votes
1 answer
2k views
Ubuntu - chmod g+s does not make new files inherit group
I installed a fresh ubuntu with apache2. I created a new folder "/var/www/foobar" with the following user:group -> black www-data. I need new files created inside this folder to inherit ...
3 votes
1 answer
650 views
How does the sticky bit help at all?
The way I understand the sticky bit on directories is that only the owner of a file within that directory can delete the file, instead of everybody with write permission. I don't get, though, where ...
0 votes
0 answers
26 views
find files with peculiar permissions set [duplicate]
I'm prepping for the LPIC1 exam, strongly relying on their online material here. Can someone pls help me clarify this doubt? What is the difference among these: find ~ -perm 4000 find ~ -perm -4000 ...