Oct 21, 2008

Agar account non-root bisa menge-mount suatu share folder

System Operasi Server: Windows 2003
System Operasi Client: OpenSUSE 10.2


Langkah di bawah ini semuanya dilakukan di client.


Buatlah satu direktori di bernama /win, seperti berikut ini:


osuse:~ # mkdir /win [enter]


Editlah file /etc/fstab, dengan menambahkan baris ini (diketik dalam 1 baris) sebagai berikut:


//windows-svr/share-drv   /win  cifs user,noauto,username=administrator,password=P@ssw0rd  0  0

Lalu ubahlah permission untuk file /bin/mount.cifs dan /bin/umount.cifs sebagai berikut:


osuse:~ # chmod +s /bin/mount.cifs [enter]


osuse:~ # chmod +s /bin/umount.cifs [enter]


Dicoba, hasilnya:


eharianto@osuse:~> mount /win [enter]
eharianto@osuse:~> mount [enter]
/dev/cciss/c0d0p3 on / type ext3 (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
udev on /dev type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/cciss/c0d0p1 on /boot type ext3 (rw,acl,user_xattr)
/dev/cciss/c0d1p1 on /mnt/vm-dc type ext3 (rw)
/dev/cciss/c0d1p2 on /mnt/vm-mail type ext3 (rw)
securityfs on /sys/kernel/security type securityfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
//windows-svr/share-drv on /win type cifs (rw,mand,noexec,nosuid,nodev,user=eharianto)
eharianto@osuse:~>

Selesai.

No comments:

Post a Comment