LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-23-2006, 04:14 AM   #1
Joe_Zhu
Member
 
Registered: Dec 2003
Distribution: Debian, RedHat
Posts: 32

Rep: Reputation: 15
Question No NT user name in samba


Hi I am using samba as a domain controller, i can successfully join this domain from my winxp pro and can use the share folder. but when i use the pdbedit -Lv username to check the user info, i found all user has no NT username. but i already have the file "smbuser" in /etc/samba/ and added the mapping user information in it......
what should i check to figure out what happen ??
thanks!!
Joseph
 
Old 05-23-2006, 09:44 PM   #2
centauricw
Member
 
Registered: Dec 2005
Location: Lawrenceville GA
Distribution: Slackware, CentOS. Red Hat Enterprise Linux
Posts: 216

Rep: Reputation: 31
The "smbuser" user file is useful for mapping an NT user alias to a Linux user and is most commonly used to map "administrator" to "root". But all these users must exist in the samba user database. You use the command "smbpasswd" to create samba users. They must already exist as a Linux user but can have their Linux account locked if they are only going to access the system via samba. See the smbpasswd man page for the details.
 
Old 05-23-2006, 10:54 PM   #3
Joe_Zhu
Member
 
Registered: Dec 2003
Distribution: Debian, RedHat
Posts: 32

Original Poster
Rep: Reputation: 15
yes, i totally understood and i had done all of these, so i expect to see the NT username of root (unix username) is administrator. but i am not. below is a capture of my pdbedit output

samba_server:/home/joseph# pdbedit -Lv root
Unix username: root
NT username:
Account Flags: [U ]
User SID: S-1-5-21-269864325-4252877334-377548599-1000
Primary Group SID: S-1-5-21-269864325-4252877334-377548599-1001
Full Name: root

any cule???
thnaks!!
Joseph
 
Old 05-24-2006, 01:09 PM   #4
centauricw
Member
 
Registered: Dec 2005
Location: Lawrenceville GA
Distribution: Slackware, CentOS. Red Hat Enterprise Linux
Posts: 216

Rep: Reputation: 31
The pdbedit output is correct. Administrator will be mapped to root and all Samba accesses will take place as root, and you will even find the user profile under "Documents and Settings" is root, not administrator.
 
Old 05-24-2006, 08:24 PM   #5
Joe_Zhu
Member
 
Registered: Dec 2003
Distribution: Debian, RedHat
Posts: 32

Original Poster
Rep: Reputation: 15
but the NT username for root is empty ...... it should be shown "administrator" ??
 
Old 05-25-2006, 08:27 AM   #6
centauricw
Member
 
Registered: Dec 2005
Location: Lawrenceville GA
Distribution: Slackware, CentOS. Red Hat Enterprise Linux
Posts: 216

Rep: Reputation: 31
It also blank on my system and in many cases will be blank. I'm not exactly sure when this field will be populated (short of peeking into the source code), but it's working as advertised and I wouldn't worry about this field being blank.
 
  


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
convert existing user to samba user taiwf Linux - General 1 02-25-2006 05:19 AM
Samba -- XP user can log in to shares but smbclient user always gets password errors ejoe Linux - Software 3 04-18-2005 10:55 AM
add samba user (Samba 3.0.2) geodo Linux - Networking 5 12-02-2004 08:36 AM
Map WXP user to Linux user in Samba? Worstje Linux - Software 1 03-26-2004 06:50 PM
Samba: What group/user is used by Samba to access directories? DJ_Cyberdance Linux - Networking 3 10-04-2003 04:21 AM

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

All times are GMT -5. The time now is 11:01 AM.

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