1
vote
0answers
39 views

Is there a way for a user to temporarily remove its own group membership within a script?

I'm writing a script which will be used to "detect" whether a generic, no-frills, user account has access to certain files. Basically a user which only has membership in the "staff" group or ...
3
votes
4answers
485 views

List users in all specified unix groups

Is there an easy way to get a list of users who are in all specified groups? For example, if I have the following users: fred - rainbow, dell jane - hp zippy - rainbow, hp, dell george - hp, dell ...
1
vote
1answer
33 views

Discrepancies in `groups` output

why is it that when I execute groups the output doesn't contain the adm group, while the output of groups $USER has it? The user is supposed to be in that group.
0
votes
2answers
276 views

Access a folder owned by another user from a windows machine using Samba

I have a Centos VM with Samba server and a user on that machine called smbuser in group smbuser. I can connect to my samba share /home/smbuser from my Windows 7 PC no problem. Also on the Centos VM I ...
2
votes
3answers
185 views

Implicitly add users to a group in UNIX through membership of a second group

I have two groups on my machine, groupa and groupb - in groupa I have two users, user1a and user2a. I would like to grant to members of groupa the privs to access groupb resources (run commands, view ...
6
votes
4answers
2k views

Where should I place group shared files on a Linux system?

I'm migrating a lot of small custom scripts and data from a Linux system to another. On the old system we had a shared user that owned most of the files and they where located in that users /home, ...
5
votes
5answers
2k views

Groups and Permissions: Nested UNIX groups

We are getting more and more outside developers (from different clients) and are beginning to need a better strategy than adhoc adding to our server and adding to them ourcompany group (which owns ...