Fedora This forum is for the discussion of the Fedora Project. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-24-2007, 03:26 PM
|
#1
|
LQ Newbie
Registered: Oct 2006
Posts: 27
Rep:
|
SMB mount file permissions - FC6
Hello all,
Please can someone help me mount a windows share into my file system, and get the permissions right? I'm running FC6.
I have a NAS which only supports SMB file shareing.
So far, I've used
mount -t cifs //192.168.1.5/storage //mnt/Rookery/ -o username=guest,password="",file_mode=0777,dir_mode=0777
which works fine when I'm logged in as root. However, when I switch to my user account (Dave) I can browse the share and access the files, but any new files/directories I create are all read only.
What am I doing wrong? Eventually I want to edit fstab so that the machine mounts the share when it boots.
All help is appreciated.
Many thanks
ABA
|
|
|
02-24-2007, 04:16 PM
|
#2
|
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
|
Using umask=000 instead of the file_mode and dir_mode should do it.
Brian
|
|
|
02-25-2007, 06:38 AM
|
#3
|
LQ Newbie
Registered: Oct 2006
Posts: 27
Original Poster
Rep:
|
Brian,
Thanks for the advice, but unfortunatly it didn't work ;(
I've tried using
mount -t cifs //192.168.1.5/storage //mnt/Rookery/ -o username=guest,password="",umask=000
This workd#s fine when I'm logged in as root, but my user account can only create read-only files.
Is there something else I'm missing?
Thanks
ABA
|
|
|
02-25-2007, 07:57 AM
|
#4
|
LQ Newbie
Registered: Oct 2006
Posts: 27
Original Poster
Rep:
|
SOLVED (but I don't know why!)
I googled this up on fedoraforums.org and copied it to fstab, then issued mount -a and everything works OK.
//192.168.1.5/storage /mnt/Rookery cifs auto,user,username=guest,password="",uid=500,gid=500,file_mode=0777,dir_mode=0777,rw 0 0
If someone has the time, please can someone explain what this means?
Thanks
ABA
|
|
|
All times are GMT -5. The time now is 05:24 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|