Linked Questions

2 votes
1 answer
12k views

Adding suid to a binary file [duplicate]

My question is about suid! The logic behind that is to grant root permission when a privileged command is executed by a user. For example, passwd has such a feature. $ ls -l /usr/bin/passwd -rwsr-xr-...
mahmood's user avatar
  • 1,271
127 votes
2 answers
302k views

What does the 's' attribute in file permissions mean? [duplicate]

Please compare the following two lines: -rws---r-x 1 root root 21872 2009-10-13 21:06 prg1 -rwx---r-x 1 root root 21872 2009-10-13 21:06 prg2 Does the setuid bit on prg1, along with the read and ...
anders's user avatar
  • 1,373
68 votes
1 answer
5k 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 ...
JdeBP's user avatar
  • 71.9k
17 votes
3 answers
15k views

Who can change the permissions of a file/directory?

I believe (not sure) that the owner of a file/directory and the root user are the only users that are allowed to change the permissions of a file/directory. Am I correct or are there other users that ...
user226341's user avatar
21 votes
3 answers
14k views

What are the different ways to set file permissions, etc., on GNU/Linux?

On Unix, a long time back, I learned about chmod: the traditional way to set permissions on Unix (and to allow programs to gain privileges, using setuid and setgid). I have recently discovered some ...
ctrl-alt-delor's user avatar
15 votes
3 answers
36k views

How to set default group for files created in Samba share

I'm sharing a directory, /home/pi/pydev on a debian box (raspberry pi, in fact) with Samba. I'm reading from and writing to that directory from a Windows 7 machine. When I create, under W7, a file in ...
RolfBly's user avatar
  • 847
8 votes
2 answers
30k views

as root cannot remove file under /tmp operation not permitted

working on a server, operating system is SLES 11.4 x86-64. There are many files, and folders, under the /tmp directory. As root, I cannot remove anything under /tmp. Such as rm -f sort5BtEdh or rm /...
ron's user avatar
  • 9,112
1 vote
2 answers
9k views

How to remove directory flags on linux?

I have a folder called "post", when I write getfacl post I get these results: # file: post # owner: www-data # group: ftpgroup # flags: -s- user::rwx group::rwx other::r-x default:user::rwx default:...
stramin's user avatar
  • 113
3 votes
2 answers
4k views

How do permissions on a directory affect files in it?

I just learned something that shocked me, because I did not have a clue it was a fact. If I have a directory with the following permissions: user@host:~$ ls -la testdir total 8 drwxrwxrwx 2 user ...
geruetzel's user avatar
  • 462
3 votes
2 answers
6k views

How to copy a file I have permission to execute, but not permission to copy?

I have a file in a subdirectory of /etc/ which I would like to copy, I can run this file as a regular user, however when I run cp /etc/subdir/desired_file . I am refused permission. However I can ...
Pale's user avatar
  • 31
1 vote
2 answers
5k views

Difference between owner and group

Can we consider the owner as a group that has exactly 1 member? Does the owner have any special abilities apart from the given permissions? I want to have two equal users with the same permissions in ...
thanosam's user avatar
-1 votes
2 answers
3k views

sudo chmod-R 777 / [duplicate]

Hypothetical situation: What would be the long term effects of running sudo chmod -R 777 /? I know that it means that all users have full permissions on all files, but are there any other side-effects?...
vikarjramun's user avatar
3 votes
1 answer
3k views

How to set permissions for future files?

I freely admit this is homework: Imagine you and your friend host an IT faculty in your former school. The list of attendees is in the attached text file. You need to manage permissions for ...
aaaeee's user avatar
  • 131
2 votes
1 answer
1k views

What are the ramifications of running binaries over NFS?

Our small business has about 10 employee workstations and an LDAP/NFS server infrastructure. We need to deploy our proprietary application (a compiled binary) on all of the workstations. But since we ...
Nick's user avatar
  • 1,181
0 votes
1 answer
1k views

Unable to set setuid bit and file owner in debian package

I have the following structure: ./inst/opt/test/ls: a copy of the /bin/ls binary, just for the sake of simplicity. ./inst/DEBIAN/changelog: test (1) unstable; urgency=low * test 1 -- test <...
Kiril Kirov's user avatar

15 30 50 per page