LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-12-2013, 02:59 PM   #1
vignesh_murali2003
LQ Newbie
 
Registered: Jun 2013
Posts: 24

Rep: Reputation: Disabled
group assignment


hi everyone,
I would like to add 'user1' to the group 'users'.
When i give command 'useradd -G users user1' it says the user already exists. But apparently it doesnt showup when i give the command 'id user1'
 
Old 06-12-2013, 03:14 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,722

Rep: Reputation: 4137Reputation: 4137Reputation: 4137Reputation: 4137Reputation: 4137Reputation: 4137Reputation: 4137Reputation: 4137Reputation: 4137Reputation: 4137Reputation: 4137
Quote:
Originally Posted by vignesh_murali2003 View Post
hi everyone,
I would like to add 'user1' to the group 'users'.
When i give command 'useradd -G users user1' it says the user already exists. But apparently it doesnt showup when i give the command 'id user1'
If you want to add an existing user to an existing group, you would use "usermod". useradd is to add a totally new user to the system.
 
1 members found this post helpful.
Old 06-12-2013, 03:26 PM   #3
vignesh_murali2003
LQ Newbie
 
Registered: Jun 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
I would like to give 'test1' access to group 'testgroup'. The permissions of the 'testgroup' are 750 and the owner is root:users. I also added 'test1' to the group 'users' . But when I set permissions to 755 everything is fine. Probably it detects other rather than group.
 
Old 06-12-2013, 03:31 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,722

Rep: Reputation: 4137Reputation: 4137Reputation: 4137Reputation: 4137Reputation: 4137Reputation: 4137Reputation: 4137Reputation: 4137Reputation: 4137Reputation: 4137Reputation: 4137
Quote:
Originally Posted by vignesh_murali2003 View Post
I would like to give 'test1' access to group 'testgroup'. The permissions of the 'testgroup' are 750 and the owner is root:users. I also added 'test1' to the group 'users' . But when I set permissions to 755 everything is fine. Probably it detects other rather than group.
Can't follow what you're saying. Groups do not HAVE permissions...directories/files do. And what is 'test1' in this case? A user? And have you read anything about the basics of Linux file permissions???
http://www.linux.com/learn/tutorials...le-permissions

A directory with permissions of 750, and owned by root:users will not be writable to anyone except root, but readable by members of the users group. Since you haven't added user test1 to the users group, it can't read it.

Again, you need to read the man pages on usermod and useradd first.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Block bitmap for group 416 not in group (block 0) + group descriptors corrupted? quanta Linux - Server 1 12-08-2010 10:40 AM
Secondary group users need to change the file permissions of primary group files? sunnybmv Linux - Newbie 3 12-10-2009 04:57 PM
group: add complete group into other group max_mad SUSE / openSUSE 1 04-12-2006 01:43 AM
Group Admin, Group Root, or God over Group crickett Linux - General 5 07-12-2004 04:01 PM
[alert] (22) Invalid argument : setgid : unable to set group id to Group 4294967295 Niraj Linux - Networking 1 12-13-2001 06:58 AM


All times are GMT -5. The time now is 01:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration