On Wed, 2003-11-19 at 15:17, Jake McHenry wrote: > > -----Original Message----- > > > > 2. edit /etc/auto.misc and add the line > > ttt -fstype=smbfs,defaults,uid=iain,gid=niceppl,dmask=770,fmask=660,credentials=/root/.credentials/.powercorp ://server/Stuff > > > > In place of the credentials file option you would put > > 'username=xxx,password=xxx' > > I've been following this thread, and it looks like it could be a > solution to one of my headaches. > > What does the credentials file you said to replace contain? Format of > it, etc... My credentials file contains four characters that are RTFM :) but seriously, because you asked nicely... `man smbmount`: credentials=<filename> specifies a file that contains a username and/or password. The format of the file is: username = <value> password = <value> This is preferred over having passwords in plaintext in a shared file, such as /etc/fstab. Be sure to protect any credentials file properly. <end man> Its even better than command line `sudo smbmount ... user=xxx,password=xxx` because if someone types `ls` they can read your password... > Could you point it to say, the system password and shadow files? Given the above, probably not! Especially since the shadow file is encrypted. But this is ok, if you make this cred file readable only by root. If the smb mount is part of your autofs, then making the file readable only by root is not a problem. HTH, -- Iain Buchanan <iain@xxxxxxxxxxxxxxxxxxx> We want to create puppets that pull their own strings. - Ann Marion -- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list