I'm trying to automate an smbmount. I'm trying to incorporate the password for a share into the smbmount command, and then I'll bung it in a batch file (I hope I'm not way off base here). I've tried adding the password after the command: smbmount //server/dir /mountpoint password also smbmount //server/dir /mountpoint -U teacher password But the variations (and I have tried quite a few!) seem to still prompt for the password. I then have to put it in manually at the prompt and it mounts fine. My big book of Linux seems to think my syntax will work without a prompt. I've tried the man pages too, so I hope I've RTFM ;) Thanks in advance -- Matt Johnson __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
On Sunday 04 March 2001 6:33 pm, Matt Johnson wrote:
smbmount //server/dir /mountpoint password
also
smbmount //server/dir /mountpoint -U teacher password
According to the smbmount I've got (2.0.7): smbmount //server/dir /mountpoint -o username=teacher,password=topsecret Which version are you running? If you're using one with the -U for username, does the password need a -P in front of it? Dan -- dankolb@ox.compsoc.net Oxford University Computer Society Secretary --I reserve the right to be completely wrong about any comments or opinions expressed; don't trust everything you read above--
On Sunday 04 March 2001 19:23, Dan Kolb wrote:
On Sunday 04 March 2001 6:33 pm, Matt Johnson wrote:
smbmount //server/dir /mountpoint password
also
smbmount //server/dir /mountpoint -U teacher password
According to the smbmount I've got (2.0.7):
smbmount //server/dir /mountpoint -o username=teacher,password=topsecret
Which version are you running?
If you're using one with the -U for username, does the password need a -P in front of it?
a quick test (sad sunday mode) shows that smbmount //server/dir /mnt -o username=user, password=pass works although i get a warning (probably from my smb.conf) also note that it does advise on my version (2.0.7) to use mount -t smbfs -o username=user,password=pass /server/dir /mnt instead Malc
Dan
-- --------------------------------------- Dr Malcolm Herbert Director, Academic Business Development Red Hat Europe t: +44 1483 734955 m: +44 7720 079845 -------------------------------------- "To err is human, but to really foul things up you need a computer" Farmers Weekly, 1977
participants (3)
-
Dan Kolb
-
Malcolm Herbert
-
Matt Johnson