Questions tagged [setgid]
17 questions
13
votes
2 answers
What's the purpose of setgid directory?
I know how setgid works, but I don't know why it is designed, is there any example to illustrate what problems it solves?
Xiè Jìléi
- 782
- 7
- 13
- 27
6
votes
3 answers
sudo or acl or setuid/setgid?
for a reason I do not really understand, everyone wants sudo for all and everything. At work we even have as many entries as there are way to read a logfile (head/tail/cat/more, ...).
I think, sudo is defeating here.
I'd rather use a mix of…
Xavier Maillard
- 201
- 2
- 4
4
votes
2 answers
Linux shared writable directory recursively
How can I make a directory recursively read/writable to a group of users?
PROBLEM:
This is a directory used by apache so access rights should be fairly strict.
The only way I could make it adequately work, was to mount the directory as an nfs share…
P Androidson
- 41
- 1
4
votes
1 answer
File permission mask/mode settings for Samba on FreeNAS?
I'm currently working on the Samba settings on a FreeNAS server. When any user creates a file or a folder on the server I want the file or folder to get the following RWX permissions:
Folders: drwxrws---
Files: -rwxrws---
To set the permissions…
tkahn
- 141
- 1
- 4
3
votes
3 answers
setgid and group write - possible for recursive directories?
I'd like to set the gid bit so the child files/folders will be set to a specific group. But I noticed that the permissions for group are only set to read and execute, not write - by default at least. Is it possible to set it to ensure that the group…
Chris Drumgoole
- 305
- 1
- 4
- 9
3
votes
3 answers
Set gid bit not working
I have these permissions on a folder.
drwxr-sr-x 2 root sharedmaster 4096 2010-09-22 10:36 rantest99
I have user tony which is in the group sharedmaster. When I try to mkdir from tony it says permission denied. Why is that?
I have set the gid…
John
2
votes
0 answers
Best practice for setuid and setgid in /root and user directories
ZFS allows to created datasets with setuid turned off, which (AFAIK) means that setuid bit can't be set on files stored in those datasets.
Assume now that there are two datasets, one for the /root and one for the /home directories. Would it make any…
Greg
- 198
- 10
2
votes
1 answer
Should usergroups be enabled?
All our users are managed with a central LDAP. When my predecessor in managing the infrastructure created the ldap he decided against creating usergroups (meaning groups of the same name and GID as the user(s UID)) and all users share one primary…
Clemens Bergmann
- 305
- 1
- 3
- 12
2
votes
1 answer
Amazon EC2 Ubuntu and upstart logging permissions
I have set up this upstart script on a Amazon Ec2 Ubuntu 12.04 TLS instance for executing a node.js application. The script uses setuid and setgid.
It works fine without using setuid and setgid but when I use them if fails because the process can't…
Alfonso Pantoja
- 121
- 3
2
votes
1 answer
setgid file deletion rights
I have been learning Linux from few days, and now I am at File Parmissions with sticky bits,
I tried the following:
[root@localhost sdcdir]# ll
total 24
drwx------. 2 root root 16384 Mar 21 21:38 lost+found
drwxrws--T. 2 root g1 4096 Mar 23 01:22…
surpavan
- 157
- 1
- 8
2
votes
2 answers
postfix/postdrop Issue with Solaris 10 (sparc) - permissions
I am trying to get postfix (installed from blastwave) working on a Solaris 10 server, but only root is allowed to send mail. The problem appears to be permission related with postdrop.
postdrop: warning: mail_queue_enter: create file…
Zayne
- 23
- 2
2
votes
2 answers
How can I make newly created directories inside a directory with the setgid bit also have the setgid bit?
I give a directory the setgid bit. Then inside that directory I create another directory, and I want it to also have the setgid bit. I have tried something like umask 6002, but it says "octal number out of range." Is there a way to do this?
davidscolgan
- 395
- 2
- 12
2
votes
2 answers
setgid on a file
If I use setgid (chmod g+s) on a file (not a directory), it turns a dark yellow in the file list (of the particular Linux variant I'm using, anyway). But as far as I know, setgid doesn't actually do anything when applied to non-executable…
Adam Ernst
- 177
- 1
- 6
1
vote
1 answer
SETUID / SETGID on a binary executable stopped working following upgrade of Fedora Core
I have a C program that needs access to a protected directory full of stuff.strong text The idea is that only the program or the administrator have access.
In the past on Linux platforms, I've used the file-system SETUID and SETGID bits rather…
Richard T
- 1,130
- 11
- 26
1
vote
1 answer
Managing Linux Directory Permissions & SFTP
Good morning;
I have a RHEL 5.7 web server configured to allow SSH/SFTP only by specific groups. I'd like for content managers to upload content to their respective directories and have that content inherit the user/group ownership of the directory…
Dizzle
- 175
- 1
- 2
- 8