All about Unix groups and access control.

learn more… | top users | synonyms

1
vote
1answer
16 views

which command will give complete user creation in RHEL?

I want to create a user in RHEL 6.5 and i have three commands (1)useradd (2)adduser (3)system-config-users which one will give the complete user creation.
1
vote
1answer
18 views

How to give user access to specific folder in home directory

I'm trying to set up a 'deploy' user on my VPS (running CentOS 6 and cPanel) which needs to have access to a specific folder from another home directory: /home/nazeem/public_html/staging. I've ...
3
votes
1answer
27 views

Adding a system user to an LDAP group with SSSD

Our LDAP server is running RFC 2307 groups (memberuid contains a username, not a DN). With our old nscd/nss_ldap/pam_ldap setup, you could list a non-LDAP user (a system user from /etc/passwd) in an ...
0
votes
1answer
17 views

Relationship between file properties and user and group

There is something not clear on relationship between file properties and user and group. root@debian:/home/debian# ls -l /home/linuxsir total 4 -rw-r--r-- 1 linuxsir root 1549 Feb 23 19:16 ...
1
vote
2answers
15 views

recommended storage location for multiple users [duplicate]

Is there a conventional location to store non-secret bulk files that can be accessible by multiple users? I know that I can create a new folder (and set the right permissions) in most places in the ...
-1
votes
1answer
30 views

why there are only 3 elements in my /etc/file? [closed]

My system is debian 7.8. It is said that there are four elements on /etc/group file , group_name Password Group ID (GID): Group List: Why are there are only three elements in my /etc/group file ...
3
votes
2answers
73 views

What is nobody nobody user and group?

On my server (Synology DS212) some files and folders have nobody nobody users and groups. What are the characteristics of this user and group? Who can write of read this file? How can I change it ? ...
0
votes
1answer
30 views

How to add “sudo” group

I've done a mistake: I've removed the 'sudo' group, because I have forgotten the -a option (I wanted to add 'video' group): sudo usermod -G video $USER Now, when I want to call sudo I have this ...
0
votes
3answers
62 views

How to add group to a user without removing other group in suse linux with usermod?

I have one user, which has one primary group & one secondary group, like: [ testuser Welcome ~ ]$ id uid=2000(testuser) gid=2000(testuser) groups=2000(testuser),27(sudo),2001(testgroup) ...
1
vote
1answer
47 views

Group member cannot list files in directory made by group

I am using Centos 6.6. I made a group with the following call sudo groupadd www-OtagoHarbour sudo usermod -G www-OtagoHarbour apache sudo usermod -G www-OtagoHarbour OtagoHarbour When I enter ...
0
votes
1answer
30 views

Sudoers - group managing and reboot/shutdown

I've got a group (let's say name "group1", ID = 1234) and a user (let's say name "user1", ID="4321"). I want to do two things: I want that user to change passwords from other members of that group, ...
1
vote
1answer
29 views

What if I add a user to a supplementary group?

I am using debian 7.0 and I added "debian-transmission" to the group "pi" with: usermod -a -G pi debian-transmission I made this change because transmission was not able to write the pi mounted ...
1
vote
0answers
16 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
34 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
42 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
37 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
28 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
53 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
46 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
32 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
118 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
83 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
140 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
143 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
21 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
59 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
29 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
83 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
275 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
40 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
72 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
71 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
571 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
304 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
67 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
54 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
151 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
2k 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
111 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
64 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
1k 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: ...
2
votes
1answer
509 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
88 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
68 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
109 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
45 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
37 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 . ...
6
votes
2answers
518 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
426 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
637 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 ...