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.
thanks in advance!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
well, seem have made headway, hit snag.
the script executes requires root/sudo.mount: root can that
mount: root can
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
Post a Comment