LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-19-2010, 08:36 PM   #1
kcynice
Member
 
Registered: Sep 2008
Posts: 111

Rep: Reputation: 18
how to mount a network drive writable


I want to map a windows shared folder to local directory, but I can't make it writable. I use mount command as following:
mount -t smbfs -o username=kcynice,password=kcynice,user,rw //192.168.1.100/SharedDocs /mnt/WinShare

Yes, this command can mount the network folder successfully, but i can only write it under terminal as root. I googled but got no answer.
So, how to mount it can be write by normal user?
 
Old 10-19-2010, 08:50 PM   #2
mf93
Member
 
Registered: Jun 2009
Distribution: Debian Squeeze, centOS
Posts: 229

Rep: Reputation: 36
make sure the permissions for the files you want edited are set so it can be edited by anyone...also check who owns the files
 
Old 10-19-2010, 08:51 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Add uid=<your numeric uid> to the mount options.


Cheers,
Tink
 
1 members found this post helpful.
Old 10-19-2010, 09:10 PM   #4
kcynice
Member
 
Registered: Sep 2008
Posts: 111

Original Poster
Rep: Reputation: 18
Yes, im sure the shared folder has write permission. and, i can read-write it under windows.

Tinkster, yes, adding uid option for mounting a shared folder, its ok. but, it doesn't work for a public folder, whose username and password is not necessary, in another word, anyone can read and write it.
 
Old 10-19-2010, 09:22 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by kcynice View Post
Tinkster, yes, adding uid option for mounting a shared folder, its ok. but, it doesn't work for a public folder, whose username and password is not necessary, in another word, anyone can read and write it.
In that case have a look at dir_mode & file_mode.
 
Old 10-19-2010, 09:33 PM   #6
kcynice
Member
 
Registered: Sep 2008
Posts: 111

Original Poster
Rep: Reputation: 18
Im sorry for wasting your time, because im still a newbie of linux.
For a folder with username and password:
mount -t smbfs -o uid=1000,username=kcynice,password=password //192.168.1.100/kcynice /mnt/kcynice
this work fine, I can read-write the folder /mnt/kcynice.
but, for another shared folder without username and password,
mount -t smbfs -o uid=1000 //192.168.1.100/SharedDocs /mnt/SharedDocs
and
mount -t smbfs -o uid=1000,dir_mode=0777,file_mode=0777 //192.168.1.100/SharedDocs /mnt/SharedDocs
works same, not writable
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Hard drive partition as writable with -rw swich using mount command fultron Linux - Newbie 12 08-16-2013 06:56 AM
RHEL 5.0 issue Trying to mount to a writable CDrw audt Linux - Newbie 2 04-03-2009 08:05 AM
cant mount readable writable = no boot? jerf Slackware 11 02-13-2009 07:57 PM
Mount iso writable? CoolAJ86 Linux - General 7 10-04-2008 01:12 AM
Mount ntfs as writable simeandrews Ubuntu 10 01-14-2006 03:57 PM


All times are GMT -5. The time now is 07:05 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration