LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-24-2002, 01:18 PM   #1
n1wil
LQ Newbie
 
Registered: May 2002
Posts: 20

Rep: Reputation: 0
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
 
Old 08-24-2002, 01:27 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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...
 
Old 08-24-2002, 01:53 PM   #3
n1wil
LQ Newbie
 
Registered: May 2002
Posts: 20

Original Poster
Rep: Reputation: 0
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
 
Old 08-24-2002, 02:59 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well it was only an example.... 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.
 
Old 08-24-2002, 03:28 PM   #5
n1wil
LQ Newbie
 
Registered: May 2002
Posts: 20

Original Poster
Rep: Reputation: 0
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting an NTSC Drive for read and write africamagical Linux - Newbie 2 11-20-2004 01:39 AM
Mounting Drive Read-Write for PHP HappyDude Linux - Software 0 09-04-2004 07:19 PM
Mounting NTFS read-write fredws Linux - Newbie 19 08-16-2003 04:11 PM
mounting ntfs with read/write xofire Linux - General 4 07-11-2002 07:33 AM
Mounting NTFS in read / write mode escrotto General 5 12-04-2001 04:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration