3
votes
3answers
103 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
22 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 ...
3
votes
2answers
113 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
77 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 ...
0
votes
1answer
29 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 ...
3
votes
1answer
69 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 ...
4
votes
1answer
68 views

How do you give a developer group access to apache, MySQL, php and the webroot?

We have 3 web designers that are currently logging in to our server via root to configure apache and setup websites. I have very basic linux knowledge (I'm a web designer) and have created users and ...
1
vote
2answers
53 views

Command to know privileges of a user group

If I run cat /etc/group command or groups username I am able to know the list of groups as group of a particular user. Is there any command through which I could know which type of privileges a ...
3
votes
2answers
55 views

Why are newly created users assigned to primary groups of their usernames?

I've noticed that on a number of linux distributions that whenever a new user is created, it is assigned to a primary group of its own name. eg. If i create a user called "testuser", by default it is ...
1
vote
2answers
82 views

How to get the group that a user belongs to in SCO

I can see how to add a user, but is there a way to get information on a user, such as the group that it belongs to?
1
vote
1answer
240 views

Granting permission for all users in a group to write to a directory and all its subdirectories

Trying out Linode for the first time, running an Arch Linux image, I successfully installed nginx as root. This, however, made /usr/share/nginx/html inaccessible to non-root users. Intuitively, I ...
4
votes
3answers
182 views

restrict student account permissions, give faculty access

I have set up two user groups, students and faculty on Ubuntu 12.04 and created a number of students and faculty accounts. The problem is a student can currently see & read all of the files of a ...
1
vote
3answers
699 views

Setting default username and group for files in directory

Using this helpful post I am able to set a default group and file permissions in a folder. I'm having trouble setting a default owner (teamlead uid 1234). setfacl -d -m g::rwx /my/test/folder ...
3
votes
2answers
48 views

Why does “logging out” of a session activate a newly added supplementary group? [duplicate]

I asked the following question Added user supplementary group, but 'groups(1)' not showing change earlier today. Now I'd like to know why the answer works. After running adduser user group ...
0
votes
1answer
187 views

Added user supplementary group, but 'groups(1)' not showing change [duplicate]

I'm trying to add myself to the fuse user group but it doesn't look like the change is taking effect even though /etc/group looks correct after invoking addgroup or usermod. I've tried both ... sudo ...
2
votes
2answers
231 views

Execute user script as root in startup applications

I just created a script (logscreenlock) to log lock/unlock screen events (derived from this post): #! /bin/bash dbus-monitor --session "type='signal',interface='org.gnome.ScreenSaver'" | ( while ...
2
votes
1answer
179 views

how to map users and group with sshfs

As you can see below I'm able to map the user from kevcoder00 to kevcoder01 but the group gets mapped to marigold although that group does not exists on kevcoder01 l00py@kevcoder00:~$ sshfs -o ...
2
votes
2answers
789 views

CentOS can't remove user from group

Asked and answered many times, but I can't get it working!!! (On CentOS) I have the user userA and I want to remove it from group sftponly. #groups userA userA : sftponly #id -Gn userA sftponly ...
1
vote
1answer
862 views

Allow all group members to create directories and files

There are 2 users sftp_user apache Both users belong to the updaters group as well as other groups. New directories and files are created in the /updates/ directory. drwxrwsr-x 8 sftp updaters ...
1
vote
1answer
92 views

Securely running LAMP under a specific user

I'm setting up a sandbox type of server that will be used by a couple users as a development environment and knowledge base. The server will have a web frontend so I've installed Apache, MySQL and ...
1
vote
1answer
2k views

Trouble adding existing user to existing group in ubuntu

I was trying to add a user called bill to www group useradd -G www bill It gives me error UX: useradd: ERROR: bill is already in use. Choose another. I checked if this user already in the group ...
2
votes
1answer
183 views

Delete every users from a group

I search a clean way to delete every users from the 'sudo' group. On several distributions the user created during the installation process has sudo rights, I don't want this. I search for an ...
0
votes
2answers
123 views

Change/Create permissions for a folder

How can I create (if the folder is new) or change (if the folder was already existent) permissions for a folder? In particular, I want to create a subdirectory in /etc/bind/ where I can put the ...
4
votes
2answers
1k views

Why don't /etc/group and /etc/password match?

OK this is a basic question showing my ignorance of sysadmin matters... Looking at the UNIX system I work on, my /etc/passwd entry says my_name:x:uid:gid:comments:home directory:login shell Then ...
6
votes
1answer
5k views

Group within group file permissions

I tried finding this on here, but couldn't so sorry if it's a duplicate. Say I have 2 groups and a user: group1, group2, user1 with the following structure: group1 is a member of group 2, user1 is a ...
8
votes
1answer
2k views

In /etc/group what is the meaning of the second field?

A sample /etc/group file contains the following entries: root:*:0: adm:!:4:logcheck antoine:x:1000: The man pages I've read (Debian & OSX) says the second field is to store a group password. ...
2
votes
3answers
1k views

Limited SSH user on Ubuntu 12

I'm running Minecraft on a server. How can I give my friend SSH access just to the minecraft folder (a root folder), the screen command, and some ports?
2
votes
5answers
9k views

What is the command for listing all users who are members of the admin group?

I am looking for the name of the superusers list on Fedora. (On Ubuntu is seems to be "sudo".) I want to add one of the users to the superusers list. The groups command only lists the groups of the ...
0
votes
1answer
223 views

Incompatible group permissions in Linux - Is it a bug? [duplicate]

Possible Duplicate: How to apply changes of newly added user groups without needing to reboot? I am on Ubuntu 11.04. I am creating another user and placing an existing user in the group of ...
1
vote
0answers
294 views

Adding a second user to a system group? [closed]

I am trying to get around a permission issue I am having. The only reasonable option (other than ACL) is to add the user that needs access to the system group of the user that has access. Yes, the ...
59
votes
5answers
81k views

How do I remove a user from a group?

Which command should I use to remove a user from a group in Debian? When adding a user to a group, it can be done with: usermod -a -G group user However, I could not find a similar command ...
4
votes
5answers
1k views

Why is it recommended to create a group and user for some applications?

Most of the time, when installing a program from source it is recommended to create a new user and a new group and give /usr/local/<myapp> the recently created user and group ownership. Why is ...
15
votes
2answers
35k views

How can I change a user's default group in Linux?

Being new to Linux administration, I'm a little confused about the following commands: useradd usermod groupadd groupmod I've just finished reading the user administration book in the Linux/Unix ...
2
votes
1answer
7k views

Changing user and group ID system wide (including file system attributes)?

(this question possibly related to Linux: simulating/masking user ownership upon mount of 'external' partitions? - Stack Overflow) I typically use Ubuntu (currently 11.04) as my desktop OS; let's say ...
2
votes
2answers
658 views

su user fails with “grep: /var/cpanel/users/user: Permission denied”

I just did something pretty simple. Given a user user, I modified his user id, primary group's id, and added him to a new group in order to make my server use the same uid and gid as another server ...
2
votes
3answers
305 views

Group information reported wrong for a specific user

I have a problem on a server I manage. An account (specifically, my account) does not seem to have the correct groups. I think the problem is most easily demonstrated by looking at the following ...
14
votes
2answers
6k views

How to apply changes of newly added user groups without needing to reboot?

Assume I'm logged in with user takpar: takpar@skyspace:/$ As root, I've added takpar as a member of group webdev using: # usermod -a -G webdev takpar But it seems it has not been applied. because ...
8
votes
2answers
6k views

GID, current, primary, supplementary, effective and real group IDs?

The following links discuss these concepts in different contexts. I have read their definitions, but I still can't tell how they are related, or if some of them are just the same. Current group ID ...
4
votes
1answer
480 views

Why do I need to use newgrp or su (or logout and login again) to have new group memberships applied?

What is it that makes new group membership require a new login (or new login shell as started by su or newgrp) to be visible? Just running another bash (or whatever other shell) instance with --login ...
6
votes
2answers
4k views

What are the allowed group names for groupadd?

I followed these instructions to build Shadow, which provides the groupadd command. I am now getting an error when trying this: $ groupadd automake1.10 groupadd: 'automake1.10' is not a valid group ...
3
votes
4answers
2k views

How to configure permissions to allow file access?

I'm running Wowza Media Server on my server as "root". The problem is that all files created (recorded) by Wowza are "root:root" and aren't writable, editable, or deletable by any other users. How can ...
3
votes
3answers
2k views

Reset all groups to default

I recently set up some groups and users on my machine, and now I want to remove all those users and all those groups. Somewhat stupidly, I read on an Ubuntu forum or something like that that it was ...
5
votes
2answers
5k views

Add all users in one group to another group?

I have some users in a group called aa and I need to give them the rights to write to a folder which is currently tomcat:tomcatdeploy. The straightforward way to do this is to add all the users to ...
1
vote
3answers
198 views

How to make files created by a specific user to have specific permissions by default

Here's a sequence of commands and the resulting output: $ touch testfile $ stat -c'%a %A' testfile 644 -rw-r--r-- What must I do so that when a user follows that sequence, I get this output ...
6
votes
2answers
5k views

I added a user to a group, but group permissions on files still have no effect

I changed permissions of a file (chmod g+w testfile) and running ls -l testfile gives: -rwxrwxr-x 1 user1 user1 0 2011-01-24 20:36 testfile I then added a user to that group ("/etc/group" has ...
10
votes
1answer
6k views

Meaning of root:wheel

What does root:wheel mean in the following? chown root:wheel myfile