All about Unix groups and access control.

learn more… | top users | synonyms

2
votes
2answers
37 views

Why can't I create a file in a directory where I have group write access? [duplicate]

There's a situation I don't quite understand. I have this directory, where the group 'webadmin' has rwx rights : $ ls -la total 8 drwxrwxr-x 2 root webadmin 4096 Aug 27 12:17 . ⋮ ...
1
vote
2answers
37 views

If I delete groups, are users in those groups deleted?

I use ubuntu 14.04 and made 120 users. 115 users are in "student" and 5 users are in "assistant". If I delete groups, then are users in those groups deleted too?
1
vote
1answer
55 views

directory permissions [closed]

I'm currently working on a PHP server explorer, and I have to determine if a directory is empty or not readable because of insufficient permission. My web application is running under the user ...
1
vote
0answers
96 views

Give a user permission to one folder

I have made so my group "sftponly" can access the users home folder. But right now the user in the group don't have permission to other folders, but they have permission to see them. How can I do so ...
1
vote
2answers
47 views

Where & How is user group information stored in Ubuntu? [closed]

Two places possible: /etc/group and /etc/passwd. If I use command: adduser [username] [groupname], then the user would be added to the group, and the file /etc/group would then be updated. However, ...
1
vote
1answer
17 views

Unable to execute program without root privileges regardless of group or permissions

avrdude is a simple tool that allows downloading of a program to a target microcontroller. For completeness, the command I am trying to issue is: avrdude -p atmega328p -c usbtiny -P usb -v -U ...
0
votes
1answer
46 views

Configure ssh users under a group [closed]

I created a group called ssh_group and currently have nearly 20 users under AllowUsers in /etc/ssh/sshd_config. After I created the ssh_group, I modified the AllowGroups line like this AllowGroups ...
-2
votes
2answers
55 views

How to prevent selected users from using “newgrp” with a password [closed]

I'd like to know how can I avoid add some users to a group? I need to avoid some users join to a group --I want to lock a group from some users, not all. Details lgroupmod -L dba ==> This ...
0
votes
0answers
61 views

Implications creating System Accounts “useradd -r” Linux Fedora/RHEL/CentOS

I want to know what are the implications of create an account using -r option? # useradd -r ... The help says: -r, --system Create a system account. System users will be created with no aging ...
2
votes
1answer
31 views

scp file as another group

I would like to scp a file, however my primary group does not match the permissions of the destination directory so I get a permission deny when I try to scp. I have the correct group as a secondary ...
1
vote
0answers
42 views

groupadd failure: “Cannot open audit interface”

I'm trying to add a group in a chrooted environment: root@my-host:/# /usr/sbin/groupadd -g 101 games Cannot open audit interface - aborting. I'm operating with root permissions. Additional info: ...
0
votes
1answer
32 views

Directory Permission Order [duplicate]

In Linux, let us assume we have a directory with the following properties: drwx---r-x 29 user1 group1 4096 Jun 22 14:11 dir1 can I, as user2 having group group1, navigate into dir1? Since ...
0
votes
1answer
40 views

What is FreeBSD equivalent of Linux /etc/gshadow?

FreeBSD version 9.0 I have here. It has /etc/passwd and /etc/group files as Linux does. I figured that Linux /etc/shadow corresponds to FreeBSD /etc/master.passwd. The open question is what FreeBSD ...
1
vote
1answer
41 views

How To Logout and Apply New Group Settings [duplicate]

Can someone please tell me how to logout and log back in again via the command line so that I can apply a new group's settings to a user. To put this in perspective, assume that I am currently logged ...
1
vote
1answer
27 views

List of group id actually used on Debian

How can I get a list of group id which are currently used for Debian OS. I know that e.g. 0-99 are reservered for Debian "intern" things, but I'm wondering which ID is used for which group inside this ...
1
vote
1answer
69 views

Linux Root group change chmod for root owned to 770

I'd like to have normal user account assigned to root group (which I've done already) and change mod of all files that are owned by root user to 770, If I understood it well in result of that every ...
4
votes
3answers
118 views

How to restrict a user to one folder and not allow them to move out his folder

I have ubuntu server on digitalocean and I want to give someone a folder for their domain on my server, my problem is, I don't want that user to see my folders or files or to be able to move out their ...
3
votes
2answers
42 views

How to update user/group settings of a running process?

Suppose I change some user settings like its initial login group or add it to a new group. I now can do su user and work with these new settings. But all the previously running processes will still ...
0
votes
0answers
93 views

How to Sync UNIX Passwords SAMBA4.x?

My current server is running Debian 8 jessie with Samba 4. Its purpose will be to host a simple file sharing server for around 100 people on Windows machines. I already have a collection of UNIX users ...
2
votes
2answers
105 views

Getting Group Names for List of Users

I have a text files with a list of users formatted like: name1 name2 name3 ... Calling the command groups gives the primary group name for that user. ex: bash$ groups name1 name1: ...
1
vote
2answers
47 views

Adding user to the group owning a folder doesn't give that user access

I have the following folders: drwx------ 4 ccote domain^users 4096 Apr 17 11:18 ccote drwxrwx--- 2 ccote ccote_jponchar_gnicolas 4096 Feb 20 10:58 ccote-jponchar-gnicolas ...
2
votes
1answer
121 views

NFS permission problem with secondary groups

I have a server running Debian 7 that exports an NFSv3 share, and a client running Centos 5 that accesses it. This works fine, except for one issue with permissions based on non-primary groups. When ...
0
votes
0answers
30 views

Force group permissions

I have a problem with my Ubuntu server. I want all files that are created in a directory to have rwx permissions for the group. I set the parent folder UID with the following command: chmod -R ...
1
vote
1answer
106 views

sort file based one colum and group by another column

I have a file of three columns: 1 A 0.5 2 B 0.7 3 A 10 4 C 4 5 B 4 I want to sort the file by increasing order of column 3 and group by column 2 1 A 0.5 3 A 10 ...
0
votes
2answers
35 views

For given directory, how to check which files has specific permission flag in the group part?

I have a directory and i want to list all files that has permissions for writing in their group part, no matter to which group they belong. Also, how it can be done for the whole filesystem?
0
votes
1answer
44 views

What are the differences between sudo and the use of groups?

I know these are tools used for improving security. But what I would like to know is what they are and how they work?
1
vote
1answer
210 views

Difference between adding sudo user with adduser or gpasswd

To add a new sudo user I believe I can call: # to create a new user sudo adduser newusername and to allow this user to use sudo I can do: sudo adduser newusername sudo or sudo gpasswd -a ...
1
vote
2answers
95 views

How to show all registred users and their groups with one command?

I was writing a test on basic Unix commands etc, and there was a question show all registered users and their groups with one command. At the same time I can't use getent command.
7
votes
4answers
2k views

Setting multiple groups as directory owners

On my server I have directory /srv/svn. Is it possible to set this directory to have multiple group ownerships, for instance devFirmA, devFirmB and devFirmC? The point is, I want to subversion ...
1
vote
1answer
63 views

Prompting for a password on sudo?

I'm creating users using Puppet. Here's the gist of what I'm doing in Puppet: user { 'ntkay': name => 'ntkay', uid => 10000, home => '/home/ntkay', managehome => true, ...
2
votes
2answers
158 views

File owner changes after editing a group editable file

I use archlinux x64. I'm studying web development and in order to edit files served by Apache under srv/http, directory which Apache serves, I created a group adding my user and Apache's user so I ...
1
vote
2answers
133 views

dialout group missing

I have debian8, (Jessie) and I am trying to add a user to the dialout group. Alas, that group doesn't exist. I would prefer not to add the user to the root or sudo group. what should I do? ~$ ...
3
votes
2answers
379 views

How to Find UID, GID, and any groups I belong to?

How to Find UID, GID, and any groups I belong to ?
0
votes
1answer
32 views

Is there any way of knowing who [including remote users] can access a paticular file / folder?

In Windows you could enter file properties and see which users have an access to a patricular files. [Including remote users / groups that are part of your domain] In unix when you enter properties ...
2
votes
1answer
117 views

Linux user groups and file system permissions

Assume I have groups G1, and G2, and user U. User U is a member of both groups, but G1 is it's primary group. In my file system there is a folder F which is accessible by G2. Now if U wants to ...
1
vote
1answer
18 views

How to only allow a group for network access?

Using OpenBSD's pf. Question: How can we modify the firewall of OpenBSD to allow ONLY a given group for network access? If somebody isn't in that group, it shouldn't have layer 3 or layer 2 network ...
1
vote
2answers
90 views

how to list users in a group and their passwords

How do I view a list of users in a specific group and their passwords or attributes? I know to use cut -d: -f1 /etc/passwd But this only lists users.
1
vote
1answer
42 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
101 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 ...
4
votes
1answer
367 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
53 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
27 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
34 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 ...
4
votes
2answers
2k 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
110 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 ...
1
vote
3answers
820 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
90 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
50 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
42 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 ...
3
votes
1answer
27 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 ...