mounting SMBFS as read and write.
Question:
How does one mount a Win2k share as read and write? I can only mount it as a readable volume. this is the command I run, and the system is a red hat 7.3 system: [netwiz@redhat netwiz]$ su root Password: [root@redhat netwiz]# mount -t smbfs //server/mp3 mp3 Password: [root@redhat netwiz]# ls -l total 106988 drwxrwxr-x 2 netwiz netwiz 4096 Aug 22 00:16 burn drwx------ 3 netwiz netwiz 4096 Aug 24 04:01 Desktop drwxrwxr-x 2 netwiz netwiz 4096 Aug 23 01:31 Documents -rw-rw-r-- 1 netwiz netwiz 0 Aug 23 01:06 exc0.sav drwxrwxr-x 2 netwiz netwiz 4096 Aug 23 00:52 file: drwxrwxr-x 2 netwiz netwiz 8192 Jul 12 09:02 install -rw-r--r-- 1 root root 21497379 Apr 21 05:49 j2re-1_4_0_01-fcs-linux-i386.rpm drwx------ 7 netwiz netwiz 4096 Aug 24 13:10 Mail -rw------- 1 netwiz netwiz 13053025 Aug 22 21:16 mozilla-i686-pc-linux-gnu-1.0-sea.tar.gz drwxr-xr-x 3 netwiz netwiz 4096 May 29 22:17 mozilla-installer drwxr-xr-x 1 root root 4096 May 7 20:21 mp3 drwx------ 2 netwiz netwiz 4096 Aug 22 01:04 nsmail -rw------- 1 netwiz netwiz 74286597 Aug 23 00:41 oo.tar.gz drwxrwxr-x 6 netwiz netwiz 4096 Aug 23 01:14 OpenOffice -rw-rw-r-- 1 netwiz netwiz 281869 Aug 22 00:59 snapshot1.png -rw-rw-r-- 1 netwiz netwiz 248673 Aug 24 03:51 snapshot3.png [root@redhat netwiz]# chmod 777 mp3 [root@redhat netwiz]# ls -l total 106988 drwxrwxr-x 2 netwiz netwiz 4096 Aug 22 00:16 burn drwx------ 3 netwiz netwiz 4096 Aug 24 04:01 Desktop drwxrwxr-x 2 netwiz netwiz 4096 Aug 23 01:31 Documents -rw-rw-r-- 1 netwiz netwiz 0 Aug 23 01:06 exc0.sav drwxrwxr-x 2 netwiz netwiz 4096 Aug 23 00:52 file: drwxrwxr-x 2 netwiz netwiz 8192 Jul 12 09:02 install -rw-r--r-- 1 root root 21497379 Apr 21 05:49 j2re-1_4_0_01-fcs-linux-i386.rpm drwx------ 7 netwiz netwiz 4096 Aug 24 13:10 Mail -rw------- 1 netwiz netwiz 13053025 Aug 22 21:16 mozilla-i686-pc-linux-gnu-1.0-sea.tar.gz drwxr-xr-x 3 netwiz netwiz 4096 May 29 22:17 mozilla-installer drwxr-xr-x 1 root root 4096 May 7 20:21 mp3 drwx------ 2 netwiz netwiz 4096 Aug 22 01:04 nsmail -rw------- 1 netwiz netwiz 74286597 Aug 23 00:41 oo.tar.gz drwxrwxr-x 6 netwiz netwiz 4096 Aug 23 01:14 OpenOffice -rw-rw-r-- 1 netwiz netwiz 281869 Aug 22 00:59 snapshot1.png -rw-rw-r-- 1 netwiz netwiz 248673 Aug 24 03:51 snapshot3.png As you can see in the permissions, it is only mounted read and execute. Even trying to change the permissions of the mount point has no effect. Please help. Thanks, ~ John |
if it's a long term thing then set it in /etc/fstab
//server/mp3 /mp3 umask=000,user=xxx,password=xxx or whatever you want. 000 will naturally make files rwxrwxrwx, which is not secure, but that's windows for you... |
I put that line in the /etc/fstab and it barked at me and said line 9 was bad.
line 9 is the new entry. Sorry, I am new to this, thanks for bearing with me. ~ John |
well it was only an example.... :rolleyes: make sure your mount point does exist... oh yeah and i did miss out the smbfs bit which goes after the mountpoint and before the options, as in all teh other lines in there.
|
ok that worked but now there's a new problem:
upon rebooting the machine and watching the startup process I saw an error 8## (#= something something) it said something like: unable to access tree, mount failed or something like that... what gives? ~ John |
All times are GMT -5. The time now is 06:55 PM. |