Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 02-24-2007, 03:26 PM   #1
LQ Newbie
Registered: Oct 2006
Posts: 27

Rep: Reputation: 15
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 // //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
Old 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, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Using umask=000 instead of the file_mode and dir_mode should do it.

Old 02-25-2007, 06:38 AM   #3
LQ Newbie
Registered: Oct 2006
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks for the advice, but unfortunatly it didn't work ;(

I've tried using
mount -t cifs // //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?

Old 02-25-2007, 07:57 AM   #4
LQ Newbie
Registered: Oct 2006
Posts: 27

Original Poster
Rep: Reputation: 15
SOLVED (but I don't know why!)

I googled this up on and copied it to fstab, then issued mount -a and everything works OK.

// /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?



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
Need to have USB thumbdrives mount without world-read permissions in FC6 xiaodown Linux - Hardware 3 12-23-2008 01:29 PM
smb mount folders disappear on mount & konqueror smb fails: network unreachable tisource Linux - Networking 1 10-17-2007 12:30 AM
Mount smb Share with read/write permissions gjblackford Linux - Hardware 3 02-26-2007 12:14 PM
mount command cant find smb directories but file-browsers can map to them. robertbas Linux - Networking 2 09-21-2006 03:12 AM
Mount file permissions ?? floodland_uk Linux - Newbie 2 08-30-2003 03:02 PM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 11:14 AM.

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