Skip to main content

Thread: Mounting samba shares on system boot/user login


greetings all!

wrote little script automatically mount 2 samba shares home directory , wondering if a) guys/gals had input how improve on script , b) tell me how go having script automatically execute when log on via ssh.

code:
#!/bin/sh    mount -t smbfs -o username=myuser,password=thepassword //192.168.1.102/data1 /home/user/data1  mount -t smbfs -o username=myuser,password=thepassword //192.168.1.102/data2 /home/user/data2
thanks in advance!

well, seem have made headway, hit snag.

mount: root can that
mount: root can
the script executes requires root/sudo.


Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [ubuntu] Mounting samba shares on system boot/user login


Ubuntu

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support