Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
replace /etc/samba/smbpasswd with passwd&shadow?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
fpemud
Apprentice
Apprentice


Joined: 15 Feb 2012
Posts: 194

PostPosted: Fri Dec 21, 2012 3:21 pm    Post subject: replace /etc/samba/smbpasswd with passwd&shadow? Reply with quote

On my machine, samba and login use the exactly same set of usernames and passwords.
But I must maintain a separate /etc/samba/smbpasswd or /var/lib/sam/passdb.tdb for samba.
It is a totally redundancy!

I learnt the samba howto, but there's no cfg to let samba use passwd&shadow directly.
why samba don't do this?

so I think everytime I add/modify/delete a user, i must remember to run smbpasswd command.
It is not a big burden but it's annoying.
Back to top
View user's profile Send private message
salahx
Guru
Guru


Joined: 12 Mar 2005
Posts: 423

PostPosted: Sat Dec 22, 2012 1:16 am    Post subject: Reply with quote

Both samba and linux use hashed (encrypted) databases. However the hashing suites are incompatible with one another. Samba has to hash its database in a way so it can authenticate Windows machines; Linux uses a different hashing algorithm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum