LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 12-21-2005, 06:05 AM   #1
JoSnow
LQ Newbie
 
Registered: Mar 2004
Posts: 4

Rep: Reputation: 0
Samba permissions on RHEL3


Hi guys,

I'm mounting a windows partition to a RHEL3 box using smbmount. The mount is successful but then I'm experiencing problems with permissions.

At mount time I set fmask=777, dmask=777, and umask=000 (I think this is the correct "everyone can control everything" option?), and when mounted, every file and directory has 777 permissions - fine.

Now when I attempt to chmod any of the files/directories I have varying success:

set to 555 - good
set to 777 - good
set to 5xx - complains, reports error but sets to 555
set to 7xx - complains, reports error but sets to 777
set to anything else - complains, keeps existing permissions.

I have no idea why this should be. I've sat with IT (the custodians of the Windows box) and we have found no problems there.

I have noticed that when I mount this area to an FC4 machine the process fails in the same manner, but the version of chmod on FC4 doesn't report an error. I am also able to mount using CIFS on the FC4 machine (not supported on RHEL3, and it would be a political issue for me to bodge the kernel as getting a linux box through the door in the first place was hard enough) and change permissions to my heart's content, which further convinces me that it's something on the linux side.

So has anyone got any ideas for me? I have to confess to being a little stumped.

Jo
 
Old 12-21-2005, 11:30 PM   #2
centauricw
Member
 
Registered: Dec 2005
Location: Lawrenceville GA
Distribution: Slackware, CentOS. Red Hat Enterprise Linux
Posts: 216

Rep: Reputation: 31
I've just answered a similar question in the Slackware forum, so I hope no one minds a little cut and paste :-)

Windows network file shares do not work like NFS file shares. The fmask, dmask, uid and gid options are all designed to provide the necessary Linux file permissions to the this foriegn file system. They do not affect the NTFS or FAT32 partition on the remote server. The username that you used in the credentials file is the user that Windows uses to determine permissions and ownership for the NTFS partition. For example, if you used a user account that had read-only permission to the NTFS file system, you would not be able to create, modify or delete files even though you specified the rw option in the mount command because the Windows user can't either.

Nor do changing of permissions work. The Linux chmod function doesn't traslate to the Windows world and it (almost) always fails on an SMB mounted file system.

I hope this helps.
 
Old 12-22-2005, 02:15 AM   #3
JoSnow
LQ Newbie
 
Registered: Mar 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Yes that would make a lot of sense but it's not the news that I wanted to hear

Oh well ...
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
samba and permissions aylov Linux - Networking 2 04-29-2005 03:28 AM
Samba Permissions? ezra143 Linux - Networking 1 02-22-2005 01:26 PM
SAMBA says 'Samba Server is not accebile, you might have no permissions' Ahmad Gurchani Linux - General 1 01-01-2005 10:34 AM
Samba and permissions Phaethar Linux - Software 2 06-17-2004 08:03 AM
Samba Permissions ppuddick Linux - Networking 2 08-02-2002 03:03 PM


All times are GMT -5. The time now is 01:47 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration