LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   SAMBA - Windows user aliases to linux usernames? (https://www.linuxquestions.org/questions/linux-software-2/samba-windows-user-aliases-to-linux-usernames-68346/)

Bungo2000 06-26-2003 09:25 PM

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.

tangle 06-26-2003 10:05 PM

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.

Bungo2000 06-26-2003 10:50 PM

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.

tangle 06-26-2003 11:01 PM

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.

mcleodnine 06-27-2003 04:16 AM

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)


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