Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- sudo mount -t cifs //192.168.1.103/MobileTeste /mnt/MobileTeste -w -o "username=Lucas,password=`cat ./senhaRede.txt`,file_mode=0700,vers=1.0,dir_mode=0700,uid=`grep lucas /etc/passwd | cut -d: -f3`,gid=`grep lucas /etc/passwd | cut -d: -f4`"
- sudo mount -t cifs //192.168.1.103/ServerNode /mnt/ServerNode -w -o "username=Lucas,password=`cat ./senhaRede.txt`,vers=1.0,uid=`grep lucas /etc/passwd | cut -d: -f3`,gid=`grep lucas /etc/passwd | cut -d: -f4`"
- sudo mount -t cifs //192.168.1.103/Sites /mnt/Sites -w -o "username=Lucas,password=`cat ./senhaRede.txt`,vers=1.0,uid=`grep lucas /etc/passwd | cut -d: -f3`,gid=`grep lucas /etc/passwd | cut -d: -f4`"
- sudo mount -t cifs //192.168.1.103/Publico /mnt/Publico -w -o "username=Lucas,password=`cat ./senhaRede.txt`,vers=1.0,uid=`grep lucas /etc/passwd | cut -d: -f3`,gid=`grep lucas /etc/passwd | cut -d: -f4`"
Add Comment
Please, Sign In to add comment