All about Unix groups and access control.

learn more… | top users | synonyms

1
vote
0answers
12 views

give group permissions to specific device

I have a panning web camera I built, (future robot arm). The camera pans via a web interface (cgi scripts and JS interface) which access an arduino. To enable sending of commands via the interface, I ...
1
vote
2answers
28 views

Give group the right to send kill signals

I have a process that a user1 runs. And I need to grant all the group members the right to send some kill signal to it. So far, I always get this output: myProcess(13919): Operation not permitted ...
2
votes
1answer
29 views

Different write behavior for owner and member of group despite 775 permissions

I have mounted a remote share via my fstab using the line: //path/to/target /media/f cifs gid=<mygroup's id>,dir_mode=0775,file_mode=0775 0 0 As a result, everything under /media/f winds up ...
2
votes
1answer
21 views

Do root's supplementary groups behave differently than regular account ones for NFS shares?

OS: Linux CentOS 7, NFSv4 On one machine I exported an NFS share group-owned by the nfsgroup with 2770 privileges for group collaboration: groupadd -g 5000 nfsgroup chown nobody:nfsgroup ...
1
vote
0answers
22 views

How can I set a group policy to all access on all folders except one?

I am currently making a test environment where users will be going through a network administration course with different levels they must complete. Due to the nature of the course, we want to give ...
1
vote
0answers
52 views

Unable to access a directory despite belonging to a group with write permission [duplicate]

I am learning basic file permission in Linux and tried actions below. I have a folder "music" to which group "music" has wxr permission. I have user "finxxi" added into group "music". When user ...
1
vote
1answer
35 views

sudoers file and passwd only for selected group

I have 3 users in "production" group: John, Steve and Bob. In "sales" group are: Sam and Jack. Now, I would like to give John permition to change passwords of all users but only in "production" ...
1
vote
1answer
22 views

User cannot access a file after setting an ACL [duplicate]

I cannot enter a directory after creation in a folder with an ACL: I am attempting to limit rwx access to a folder for just a single group and no one else. I would like to be able to add new users to ...
1
vote
1answer
45 views

Creating users with groups in Ubuntu Server? [closed]

Typically when I create a new user in CentOS / Redhat with the command: useradd user The permissions that it is assigned to the user typically works fine. I believe everything is restricted to its ...
0
votes
2answers
38 views

Automatically set group and permissions on files in a folder? [duplicate]

When I create new files and folders in a specific folder, I would like them to inherit the group and permissions of the parent folder. Is this possible ? For example mkdir -p example.com/public cd ...
1
vote
2answers
48 views

Remove group ID from user

How can I remove a group (which was previously deleted) from a user which still references it? If I run groups, I get an error about a non-existent group: $ groups myuser dialout cdrom sudo dip ...
0
votes
1answer
60 views

What has priority - owner/user vs group permission? [duplicate]

I have just run into the case in which the owner-group of a file has more permissions than the owner-user of a file. user1@pc:/tmp$ ls testfile -l ----rw---- 1 user1 user1 9 Okt 16 13:16 testfile ...
1
vote
0answers
19 views

Configuring group access across a LAN

I have created a group called engineers on two VMs on the same 192.168.56.0/24 LAN. Is there any way the members from VM1 in engineers can view files created by engineers from VM2? I was thinking of ...
1
vote
1answer
56 views

Given a domain-controlled group, how can I get its domain?

I'm working on an application which collects data on groups. In my application I need to collect data and the residing users of local groups and send meta-data on domain-controlled groups. My ...
-4
votes
1answer
27 views

Arrange for files created in a directory to belong to the directory's group

How do I set permissions so that whoever creates any files or directories in /directory, the group owner should automatically be the same group owner of /directory? This is on RHEL.
2
votes
1answer
70 views

can't execute a command even i'm in the group and command is -rwx--x---

I'm in $ORACLE_HOME/OPatch directory and when I type opatch then I get the response as, -bash: opatch: command not found If I do ./opatch, then I get the response as, /bin/sh: ./opatch: ...
1
vote
0answers
103 views

Tomcat unable to create file in dir owned by same group

I have a server running Tomcat, and I need Tomcat to create a file in a particular folder. Tomcat (technically a Java app) runs as the user 'tomcat', as evidenced by top: #top 1251 tomcat 20 0 ...
1
vote
1answer
35 views

Find files belonging to a group

Actually I want to find all the files and folders that are under the same group, for example I have this : [test] user1/sam a.txt user9/sam b.txt user4/sam I'm looking for a command ...
0
votes
1answer
50 views

Debian: chgrp doesn't works properly on home folder

I'm trying to use chgrp on a folder named "share" in a home folder of the user "2". The ls -l presents the folder like this: drwxr-xr-x 2 2 bin 4096 Sep 29 13:09 share When using chgrp with the ...
2
votes
2answers
65 views

How does bash pass user groups to a child?

It is well-known that if I add myself to a new group, that change will not be reflected until I log out and back in: $ sudo adduser me newgroup $ groups me sudo $ groups me me sudo newgroup $ This ...
5
votes
2answers
251 views

Reasons behind the default groups and users on Linux

Having a look at the default users & groups management on some usual Linux distributions (respectively ArchLinux and Debian), I'm wondering two things about it and about the consequences of ...
3
votes
1answer
193 views

Why does every user have his own group?

One thing I've noticed in a lot of recent distros is that users all have their own groups with the same name as their user name. What's the purpose of that? Groups are made to group users together in ...
0
votes
2answers
54 views

What is the significance of the “wheel” group? [duplicate]

I've commonly seen references to a wheel user group online as well as when setting up my sudoers file. Does naming a group wheel imply something special about the group or is it just a name for a ...
3
votes
1answer
38 views

Why does uucp take group 10?

According to YoLinux, group ID 10 typically belongs to wheel. And on my Arch Linux installation, sure enough there in /etc/group is wheel:10. However, on my Ubuntu machine instead I'm greeted with ...
3
votes
3answers
127 views

Why only one active group at a time?

As far as I understand the users in Unix system can belong to multiple groups and one of them will become the primary group for that user. Others will be supplementary groups. All of this User/Group ...
0
votes
1answer
248 views

How to change primary group? [duplicate]

I have a user like this: uid=501(ironsand) gid=500(foo) groups=500(foo),10(wheel),497(git),501(ironsand) And to change primary group to ironsand like gid=501(ironsand), I typed this command: sudo ...
1
vote
2answers
75 views

Where is core group defined on coreos?

On CoreOS EC2 instance, I find the following: $ cat /etc/passwd root:x:0:0:root:/root:/bin/bash core:x:500:500:CoreOS Admin:/home/core:/bin/bash $ cat /etc/group wheel:x:10:root,core sudo:x:150: ...
1
vote
1answer
58 views

Groups in the Samba configuration

I can't quite understand groups. For example, lets say if I add the following into my samba config: valid users = @users Must the group users exist on my system or is a samba group itself? And if ...
2
votes
1answer
692 views

id command doesn't show all user's groups [duplicate]

I did a usermod to add the current user user in a group, but when I run id -Gn it only shows the main user's group: [user@computer ~]$ id -Gn user But when I specify the user, it works normally: ...
1
vote
1answer
328 views

how to make logstash read kannel log

I got logstash installed on ubuntu 12.04 using the apt repository. But logstash is not reading any document. In logstash log there are teh following: ...
1
vote
2answers
72 views

how to determine the permissions of groups?

When you invoke sudo, it prompts for password and then checks the /etc/sudoers configuration file to see if the user is permitted access to run the command. /etc/sudoers is the sudo configuration ...
1
vote
0answers
61 views

Which command would you use if you want to remove the password assigned to a group

Suppose I have one or more groups (as in the user database as backed by /etc/group or LDAP or NIS+...) configured with a password (for the sg or newgrp commands). Which command would you use to ...
3
votes
3answers
93 views

Is it possible to have a bashrc for a usergroup?

Is it possible to execute some bashrc file for all users in a group? If you can do that system-wide in /etc/profile then why not for a usergroup?
0
votes
1answer
33 views

As what user does a command end up executing? [duplicate]

How can I find out as what user a command executes? (I'm running Ubuntu, but I suspect the answer applies to Unix in general). What I'm trying to do is get msmtp running and logging to ...
-1
votes
1answer
34 views

add groups from external file

I want to write a script which add groups to the system, specified in groups.txt file. content of groups.txt : group01 : computer group02 : electronics group03 : IT . ...
3
votes
1answer
347 views

groupadd failure while writing changes to /etc/group

I have been following this guide on installing debian-kit on my Sony Xperia Tablet Z and the installation goes fine until I try to apt-get install andromize which fails with the error groupadd: ...
3
votes
2answers
219 views

Short, simple command to create a group if it doesn't already exist?

What is the cleanest way to modify this command in bash to only run if the group does not exist? groupadd somegroupname A one-liner would be best.
2
votes
3answers
284 views

adding list of users to multiple groups

I have a shell script which add list of users which is listed in another file lets say users.txt. After that, I want my script to add users to multiple existing groups with condition, one user may ...
1
vote
1answer
54 views

Troubleshooting joining a group in Mint in VirtualBox [duplicate]

I am trying to join my user to the vboxsf group to access a VirtualBox shared folder from inside my Linux Mint virtual machine. However I'm encountering a problem that I can't troubleshoot. I've ...
0
votes
1answer
110 views

Cannot lock group file: already locked

I'm trying to add a group using this command: groupadd somegroup which returns: Cannot lock group file: already locked. I did some research and most of the solutions require removing a lock file ...
4
votes
1answer
1k views

View List of Sudoers with No Sudo Priviledges

If I'm not a sudoer, is it possible to view the list sudoers? Does /etc/group show this information?
1
vote
1answer
166 views

AT&T UNIX System V Release 4 - How do I create a new “Administrator” user?

I am running AT&T UNIX System V Release 4 Version 2.1 inside VirtualBox, and want to create a new "user account" for myself. At first, I simply created a new user with the useradd command, but ...
1
vote
3answers
192 views

Delete non-unique group with group ID as primary group of a user

So say I have two groups with names testing1 and testing2. Both groups have the same group ID of 2000. Then I add a user named testing-user with GID of 2000. Along the way I want to delete group ...
7
votes
4answers
218 views

Groupwise uniq command?

I am searching for a command to get from a file in this format: hello 32 hello 67 hi 2 ho 1212 ho 1390 ho 3000 To this format (deduplicate by taking the last row of a "group"): hello ...
2
votes
3answers
388 views

User permissions problem Linux

Every time I create a new file from "eclipse", I need to run these two lines of code to get the r/w permission: chmod -R 775 /var/www/folder/filename.extension And/Or sudo chown -R ...
4
votes
2answers
168 views

Precedence of user and group owner in file permissions

I just ran into something unexpected (for me) regarding file permissions on Linux (Arch Linux). Basically I have: userX in groupX fileX userX:groupX ---rwx---- What puzzles me: I cannot perform ...
-2
votes
2answers
48 views

Clarification on permissions with GID & UID in UNIX

If Test1 & Test2 are users, then Test1 : UID : 501, GID :501, groups=501,100 Test2 : UID : 502, GID :502, groups=502,100 What will be the correct option from below and explain how? Test1 ...
1
vote
0answers
158 views

postfix expand ldap group AND afterwards resolve alias

We have a postfix server which has the user config stored in a openldap directory. Recently we also implemented ldap groups which are expanded by postfix. This works fine, unless the group expands to ...
3
votes
1answer
83 views

Two users with different permissions on same directory

Is it possible to give two users different permissions on the same directory? I want to use it for ftp: userFull gets R+W and userLim gets only Read, depending on who logs on. Im getting stuck on the ...
0
votes
2answers
1k views

Privileges for jenkins at apache's folder

I'm having issue similar to this: How to copy files as Jenkins "post build" action if i don't have privileges to destination directory I'm willing to move/copy/rsync files from jenkins ...