Questions tagged [sticky-bit]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4 votes
1 answer
55 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 ...
user avatar
  • 450
-2 votes
1 answer
116 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 ...
user avatar
  • 1,708
2 votes
1 answer
77 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 ...
user avatar
  • 23
0 votes
0 answers
22 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 ...
user avatar
1 vote
2 answers
370 views

rsync not setting stickybit / GID bit

Using the following rsync command, the RWX permissions are being correctly set for both files and directories but the sticky bit options are not. rsync -rtvz --partial-dir=.rsync-partial --chmod=Da+t,...
user avatar
  • 167
0 votes
1 answer
105 views

stickybits setgid not working

I have structure like: /home/reed/, user=reed, group=reed - apache-conf, user=reed, group=reed - apache-web, user=reed, group=apache, perm=0770 - www.website.com, user=reed, group=apache, ...
user avatar
  • 121
1 vote
0 answers
85 views

sudoedit ignores sticky bit when checking for directory writability

sudoedit does not allow editing files when the original user has write access to one of the parent directories (as explained here). However, I'm noticing that sudoedit does not seem to take into ...
user avatar
0 votes
1 answer
444 views

remove user access from /tmp directory

Is it possible to remove access of /tmp directory for a particular user, i.e user should not be able to even read /tmp directory ? I know tmp directory has 1777 permission and let every user to ...
user avatar
0 votes
0 answers
852 views

Running commands with www-data privileges in scripts, crontab and systemd

I've already read "Allow www-data to perform specific commands" article. But, crontab and systemd invokes scripts using root privilege. # my-service.service [Unit] Description=My Service [Service] ...
user avatar
  • 115
1 vote
1 answer
195 views

Why does chmod o=rwx removes sticky bit while chmod u=rwx and chmod g=rwx don't remove suid and sgid?

I'm having a problem with chmod command. I have a directory with sgid, suid and sticky bit on. If I then run chmod u=rwx {dirname} or chmod g=rwx {dirname} sgid and suid are still on. But if I run ...
user avatar
-1 votes
1 answer
644 views

Permission needed to create/remove file in a directory with sticky bit set

I understand that creating/removing a file from a directory with sticky bit set requires one of the followings you are root you are the owner of the file you are the owner of the directory and you ...
user avatar
0 votes
1 answer
290 views

How to add sticky bit to a directory in exFAT?

I get this error from Homebrew when trying to build an application on MacOS 10.10.5, on an exFAT filesystem Error: parent directory is world writable but not sticky I use this command to enable ...
user avatar
  • 551
8 votes
2 answers
6k views

Why would a directory have the sticky bit set without the executable bit?

In Ubuntu 14.04, listing the contents of the directory /var/spool/cron with ls -l provides the following permissions on the directories within (irrelevant columns snipped): drwxrwx--T daemon daemon ...
user avatar
  • 403
3 votes
0 answers
26 views

Removing a directory (that contains subdirectories) from a directory that has sticky bit [duplicate]

This is my setup [root@ ~]# mkdir /sticky01 [root@ ~]# chown user01:user01 /sticky01 [root@ ~]# chmod a+rwx /sticky01 [root@ ~]# chmod +t /sticky01 [root@ ~]# ls -ld /sticky01 drwxrwxrwt. 3 user01 ...
user avatar
66 votes
1 answer
4k views

What did the sticky bit originally do when applied to files?

In various places one can see the "sticky bit" accused of nowadays being a complete misnomer, as its functionality nowadays is to affect the write permissions on directories and act as a restricted ...
user avatar
  • 62k
0 votes
0 answers
688 views

scp file to remote server prevent delete

A team want to implement a crude file dump backup solution to be used by multiple hosts. They have a remote user on the backup server backupusr that they can SSH/SCP with, with SSH keys setup. The ...
user avatar
  • 1,025
6 votes
1 answer
8k views

how do you find all files and directories without sticky bit?

how do you find all files and directories without sticky bit? I have a bunch of old files that I need to delete so I use: find . -mtime +3 -a \( -type f -o -type d \) But then this find command will ...
user avatar