Questions tagged [sticky-bit]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
12 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 ...
0
votes
1answer
44 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 ...
0
votes
0answers
55 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] ...
1
vote
1answer
54 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 ...
-1
votes
1answer
473 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 ...
0
votes
1answer
259 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 ...
7
votes
2answers
5k 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 ...
3
votes
0answers
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 ...
66
votes
1answer
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 ...
0
votes
0answers
462 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 ...
6
votes
1answer
7k 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 ...