LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-26-2003, 09:25 PM   #1
Bungo2000
Member
 
Registered: Mar 2002
Location: San Francisco, CA
Distribution: Redhat 9
Posts: 35

Rep: Reputation: 15
Talking SAMBA - Windows user aliases to linux usernames?


I'm setting up a SAMBA configuration. I want to be able to alias one user to another for SAMBA authentication:

Example: a user with a linux username 'johnbloggs' wants to have access to his files on the linux box, but his windows login name is 'john'. I want 'john' to be an alias for 'johnbloggs' so that logging in with 'john' is equivilent to logging in as local linux user 'johnbloggs'

I know this is possible becuase it can be easily done with WebMin. I am no longer running webmin, however, and am using SWAT to administer samba. I cant find this option in SWAT however, so I would like to know how it can be done!

Thanks a lot.
 
Old 06-26-2003, 10:05 PM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
In webmin there is a authentication icon in the samba section. In it is a user mapping. I believe that you can make a user named johnbloggs on the linux box and map it to the john user on the windows machine.
 
Old 06-26-2003, 10:50 PM   #3
Bungo2000
Member
 
Registered: Mar 2002
Location: San Francisco, CA
Distribution: Redhat 9
Posts: 35

Original Poster
Rep: Reputation: 15
Well yes, you can, which is exactly what I said. In fact my post is asking how you can do that without using WebMin -- either using SWAT or direct configuration.

Thanks again.
 
Old 06-26-2003, 11:01 PM   #4
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
If you look on samba's website there is a way. I forget exactly how to do it. Basically you need to create a file named usermaps, or some thing like that. Then add john = johnbloggs.
 
Old 06-27-2003, 04:16 AM   #5
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
the smb.conf directive is 'unsername map'

You can read about it in the help files (smb.conf.5.html#USERNAMEMAP) or in the man pages (man smb.conf) then search for the string 'unsername map' (press the '/' key and enter the search term)
 
  


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
Samba or Wins issue: netbios aliases, not accessible by hostname pingu Linux - Networking 1 05-02-2008 01:51 PM
Sendmail + /etc/aliases = Unprivlieged User mail ckoniecny Linux - General 1 10-22-2005 05:41 AM
Windows XP Setup for user verification with Samba file server crazyswede Linux - Networking 2 07-28-2004 04:51 PM
Setting samba usernames TheRealDeal Linux - Networking 3 05-24-2004 05:37 PM
Map WXP user to Linux user in Samba? Worstje Linux - Software 1 03-26-2004 06:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:10 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