I see that mksmbpasswd.sh (plus a little editing) would be a good way to set up users with "NO PASSWORD" in bulk. But suppose I don't want the risk of the "NO PASSWORD" approach. Now somebody with root access must run smbpasswd for each user they want to activate. But can't I just do this anyway (with the -a 'add user' option), without ever having run mksmbpasswd.sh? Please clue me in if I'm missing something here. Thanks. Frank R.Brown Frank.R.Brown@MailAndNews
On 5 Jun 99, Gerald Carter had this to say about Re: Does mksmbpasswd.sh have any real purpose?:> I wrote: > > > > manually using (what else) smbpasswd. Or you can set: > > unix passwd sync = yes > > and use the standard passwd command instead. > > Nope. This only has relevance when issuing a password > change request from a Windows client.Oops <grin> my mistake (again). I was just pulling stuff (some of which I've never tried myself) off the top of my head (because I haven't finished running cable to the back room and I can't get to my server :( Thanks again for paying attention.> > Or you can run: > > update encrypted = yes > > encrypted = no > > and let each user login normally. Once each user's password has > > been added to /etc/smbpasswd you switch to > > update encrypted = no > > encrypted = yes > > and there you go. > > This is correct. > > Seems like we have a long conversation today. Hope you > don't mind.Nope. See above Steve ************************************************ Steve Arnold CLE (Certifiable Linux Evangelist) http://www.rain.org/~sarnold
"Frank R. Brown" <list.Frank@MailAndNews.com> wrote:>I see that mksmbpasswd.sh (plus a little editing) would >be a good way to set up users with "NO PASSWORD" >in bulk. > >But suppose I don't want the risk of the "NO PASSWORD" >approach. Now somebody with root access must run >smbpasswd for each user they want to activate. But can't >I just do this anyway (with the -a 'add user' option), without >ever having run mksmbpasswd.sh? > >Please clue me in if I'm missing something here.Try this: # smbpasswd -a newuser # smbpasswd newuser defaultpassword The smbpasswd command can take a new password from command line option. This feature is undocumented option :-). NOTE: Anyone can see command line options in any proceses by using the ps command. (BSD-style `ps` only?) -- >8 -- signature -- >8 -- FROM : SATOH Fumiyasu <fumiya@cij.co.jp> WEB : http://www.bento.ad.jp/~fumiya/ WEB(LAN): http://kumasun.si.ykhm.cij.co.jp/ SAMBA : http://samba.bento.ad.jp/