LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-18-2012, 01:01 AM   #1
keysys
LQ Newbie
 
Registered: Dec 2012
Posts: 13

Rep: Reputation: Disabled
How to add Windows Domain User to Linux Group (help)


Dear admin / Users,

Can you some one describe how to add windows domain user to Linux group ??

Thanks
 
Old 12-18-2012, 01:53 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
not without a better description of your setup. is AD involved? where are these linux groups? how are you running this all?
 
Old 12-18-2012, 02:08 AM   #3
keysys
LQ Newbie
 
Registered: Dec 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
Dear Chris,

Really Appropriated your prompt on regards.

As i have successfully integrate my Linux box (Cent OS) windows 2003 Domain Controller.

all my users are located on Domain Controller and i need to provide access rights to them by using samba share.so i need to add Specific user in my active directory to created Linux group

Example
Active directory users are - User01 / User02 / Admim
Create Linux Group as NTUSER and then need to specific user to created group in Linux on above user list


i checked wbinfo -g / wbinfo -u and its retrieved users and groups well.
 
Old 12-18-2012, 02:10 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
So if the group is local to the linux server, then you can just add the AD username to the group in /etc/group (or via a tool like usermod). Is that what you mean?
 
Old 12-18-2012, 02:50 AM   #5
keysys
LQ Newbie
 
Registered: Dec 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
Dear Chirs,

Usermod command not working with domain enviromanent

User Exist in active directory.

[root@filesvr /]# id internet1
uid=268442898(internet1) gid=268442898(internet1) groups=268442898(internet1),268435969(domain users),268440364(www-group) context=system_u:system_r:initrc_t

[B]when trying to add[/B]

[root@filesvr /]# usermod -G new internet1
usermod: user internet1 does not exist


successfully for local user (Linux users )

1.[root@filesvr /]# useradd cool
2.[root@filesvr /]# id cool
uid=501(cool) gid=507(cool) groups=507(cool) context=system_u:system_r:initrc_t
3.[root@filesvr /]# usermod -G new cool
4.[root@filesvr /]# id cool
uid=501(cool) gid=507(cool) groups=507(cool),506(new) context=system_u:system_r:initrc_t





Thank you,

Last edited by keysys; 12-18-2012 at 02:54 AM. Reason: additional information added
 
Old 12-18-2012, 02:56 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
oh, right so "getent passwd" doesn't show the users? And this group membership is just for share access as opposed to system logins? If this is for samba access, then I'd have thought you should be using AD to hold the group as well as the users. If it IS for system access, then you'd need to add winbind to /etc/nsswitch.conf to make the samba / AD sourced users available to the base system
 
Old 12-18-2012, 03:02 AM   #7
keysys
LQ Newbie
 
Registered: Dec 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
Dear Chirs,

getent passwd is retrieved my local and domain user list as well.

Thanks
 
Old 12-18-2012, 03:22 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
hmm, tried just adding it to /etc/group directly? Not sure why usermod won't add it.
 
Old 12-18-2012, 03:37 AM   #9
keysys
LQ Newbie
 
Registered: Dec 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
Dear Chirs,

i added windows use to new group which was created recently.after that gave the file group owner right to specific folder and tried to access from windows Pc,but its not success.

1.vi /etc/groups
new:x:506:cool,internet1
2.change the folder group as "chgrp new samba-test"
3.change the permission as drwxrwx--x on samna-test
4.try to access group user but unable


when i gave the add my domain user as the owner of the folder then windows user have full access on it.
1.chown internet1 samba-test
2.change the permission as drwx------
3.try to access from windows machine & its success.
 
  


Reply



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
How to list user in Linux box, add an user to a group! steady_lfcfan Linux - Newbie 12 01-27-2013 01:14 PM
[SOLVED] Add Local User to Domain Users Group Stannley Linux - Newbie 1 09-09-2012 09:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:28 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
Open Source Consulting | Domain Registration