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. |
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.
|
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. |
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.
|
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. |