Questions tagged [gid]

5 questions
3
votes
0 answers

iptables, groups and setgid

I have a question about the "owner" module of iptables. I saw that it's possible with it to only allow some programs to use services based on their (e?)gid. On this basis, I can employ the set-group-id bit to change the egid of a program and so,…
Taurre
  • 131
2
votes
1 answer

Does a Unix process automatically get supplemental-groups permissions?

User spock belongs to groups human and vulcan. File holo is owned by user root and by group vulcan. Its permissions are rwxrwx--- (770). Process tractor is started by user spock, and has uid spock and primary gid human. Will tractor automatically…
Sundar R
  • 1,539
0
votes
0 answers

Using sgid bit on specific executable files to filter their traffic with iptables

I'm trying to filter traffic with iptables for specific applications by their effective owner id (--gid-owner). For this purpose I've created a group $ sudo addgroup net-user , set this group on an executable file $ sudo chown :net-user…
raacer
  • 633
0
votes
2 answers

How do I get string username/groupname from numeric uid/gid on remote host in an SFTP session?

I'm automating file transfer via SFTP and got stuck when changing file ownership in the remote host. The problem is that SFTP's chown and chgrp commands only accept numeric uids/gids, which are not known beforehand. The expected scenario for my…
0
votes
1 answer

Uid and gid relation to file permissions

I'm confused about what effect the uid or gid has on the ability of a process to execute a file. I read the section I could find on them in APUE, but I must have missed the part where Stevens explains this. I know that the superuser has an id of 0…