How to map network drive ??

Gavin McCullagh gmccullagh at gmail.com
Wed Jan 23 11:50:45 GMT 2008


Hi,

On Wed, 23 Jan 2008, oedha at netscape.net wrote:

> > Please try to give the information we ask for.  The output of the "mount"
> > command please.
> 
> --- i didnt get it...no comment on mount or this one ?

What I meant was literally the command "mount", eg 

gavin at hector:~$ mount
/dev/sda1 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
lrm on /lib/modules/2.6.22-14-generic/volatile type tmpfs (rw)
securityfs on /sys/kernel/security type securityfs (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)

> > Please give us the output of the command 
> >     ls -l /media/x/
> > having mounted the share with 
> >     
> > //citserver/shared /media/x cifs rw,uid=root,gid=users,mode=0770,dir_mode=0770 0 0


> here it is
> oedha at The-ELF:/media$ ls -l /media/x
> total 27348
> -rwxr--r--  1 root users 27665488 2008-01-22 07:41 20080121-007-x86.exe
> -rwxr--r--  1 root users   230912 2007-10-29 14:44 CITCenter_main_Policies.pps
> -rwxr--r--  1 root users      124 2008-01-23 08:39 Control Panel.lnk
> -rwxr--r--  1 root users    49664 2008-01-22 15:25 EXERCISE2_DESMALITA EKA SANTI.doc
> drwxr-xr-x  9 root users        0 2008-01-08 07:41 Free_to_take
> drwxr-xr-x  8 root users        0 2008-01-23 10:20 Linux
> drwxr-xr-x 10 root users        0 2008-01-23 10:19 LRC
> drwxr-xr-x  2 root users        0 2008-01-21 16:07 MUSIC
> drwxr-xr-x  6 root users        0 2008-01-18 15:59 PEKSIPEL
> drwxr-xr-x 42 root users        0 2008-01-22 17:44 PICTURES
> -rwxr--r--  1 root users     1060 2007-11-05 10:30 ReadMe_First_X_.txt
> drwxr-xr-x 21 root users        0 2008-01-17 16:32 Students_Files
> drwxr-xr-x 28 root users        0 2008-01-23 15:19 Teachers_Files
> drwxr-xr-x  8 root users        0 2007-12-04 18:01 TP7
> drwxr-xr-x  5 root users        0 2008-01-21 14:18 VIDEOS
> drwxr-xr-x  4 root users        0 2008-01-23 16:10 X_CIT
> drwxr-xr-x  2 root users        0 2008-01-21 12:14 XI_CIT
> drwxr-xr-x  9 root users        0 2008-01-22 09:59 XII_CIT

Okay, so it's mounting it in such a way now that root has ownership of
everything and the associated group is users.  This is good.  Can you
please try writing to the share as root, eg:

	sudo touch /media/x/testfile

If testfile appears on /media/x/ then we know it's just a local permission
issue which we can alter with the fstab.  You then just need to change the
mount options so that the users group has rwx on all files too.  Add the
option
	fmask=0775,dmask=0775

You're right you do need the smbfs package installed, in order that the
smbmount command is available.  All of these options are available by
looking at its manpage:

	man smbmount 

Gavin




More information about the edubuntu-users mailing list