Monday, April 8, 2013
Scrip Map network drive on ubuntu
For ubuntu 10.xx - 12.04
//192.168.4.xx/market /media/market cifs username=center,password=xxx001,iocharset=utf8,codepage=unicode,unicode 0 0
For ubuntu 12.04 Kernel 3.6.0
install packet smbfs
#aptitude install smbfs
edit #vim /etc/fstab
.
.
//192.168.4.xx/market /media/market cifs username=center,password=xx001,iocharset=utf8,uid=1000,gid=1000 0 0
**uid=1000 check on /etc/passwd
**gid=1000 check on /etc/group
command map
#mount -o username=mxx,password=mxxx //192.168.xx.25/share folder /media/mail
Create file Credentails
1. Create Folder on Client
#mkdir /home/user/Sharefile
2. create file passwd credentail
#echo “username=samba_username” > /home/user/Sharefile/.smbcredentials
#echo “password=password_username” > /home/user/Sharefile/.smbcredentials
#chmod 600 /home/user/Sharefile/.smbcredentials
3. Edit file /etc/fstab
add new line
#//192.168.0.xx/downloads /home/user/Sharefile cifs uid=1000,gid=1000,credentials=/home/user/Sharefile/.smbcredentials,defaults 0 0
4.Run mapdrive
#mount //192.168.0.xx/downloads
or
#mount -a
umount
#umount Sharefile
Ref.
techsuii.com
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment