Questions tagged [setgid]
The setgid tag has no usage guidance.
18
questions
1
vote
1
answer
362
views
Linux GID and groups
On Linux systems, /etc/passwd file contains an UID and a GID per user.
GID represents the ID of the primary group of the user.
But we can also set additional groups to a user with /etc/group file.
Is ...
0
votes
1
answer
440
views
Setgid bis is *not* set on a new directory when ACLs are enabled
I'm struggling with ACLs on Linux. In my setup, I need to inherit both setgid bit and my ACLs when creating new directories. The ACLs are inherited as expected. The new directory has got all ACLs the ...
2
votes
0
answers
824
views
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 ...
2
votes
1
answer
112
views
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 ...
2
votes
1
answer
986
views
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 ...
1
vote
1
answer
703
views
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 ...
1
vote
1
answer
3k
views
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 ...
2
votes
1
answer
437
views
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 ...
4
votes
2
answers
662
views
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 ...
2
votes
2
answers
521
views
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: ...
2
votes
2
answers
893
views
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 ...
4
votes
1
answer
6k
views
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: ...
1
vote
1
answer
885
views
setgid on samba share not working with Mac OS X
I've set the setgid-bit on folders within my samba-share. It works like a charm for windows and linux clients.
Accessing such a folder with a mac-client the setgid is ignored and the group permission ...
3
votes
3
answers
6k
views
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. ...
3
votes
3
answers
9k
views
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 ...
6
votes
3
answers
5k
views
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 ...
14
votes
2
answers
20k
views
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?
2
votes
2
answers
1k
views
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 ...