Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-04-2005, 11:18 AM   #1
Registered: Aug 2005
Location: Arizona
Distribution: Slackware 13, Arch Linux
Posts: 85

Rep: Reputation: 15
SAMBA read write access


I am mounting a Windows partition from my Linux workstation. Using
smbmount //office/SharedDocs /mnt/windows -o rw,uid=1000,gid=storage
user 1000 can read and write the disk, but 1001 cannot. Without any uid, only "root" can write to the disk.

I thought that by having the gid be something common, that members of the group would be ok, but that doesn't seem to be the case. All users are members of "storage", but only 1000 can write the disk.

I'm wondering how to give the group read write access. For example after the disk is mounted, a directory listing shows that the group only has read and execute access:
-rwxr-xr-x  1 user storage 5 2005-12-04 09:12 temp.dat
I'd like to move this to fstab so it is not user specific. Reading the smbmount man page has got me this far, but I'm confused about how to finish.

Can someone suggest an appropriate gid and uid combintation that will serve the purpose? Or give me an idea for giving the group write access?

Thanks in advance for your patience!
Old 12-05-2005, 04:28 AM   #2
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,910

Rep: Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891Reputation: 1891
Take a look here:

Last edited by bathory; 12-05-2005 at 05:00 AM.
Old 12-05-2005, 03:06 PM   #3
Registered: Aug 2005
Location: Arizona
Distribution: Slackware 13, Arch Linux
Posts: 85

Original Poster
Rep: Reputation: 15
Thank-you for your reply!

The instruction link you sent me is very complete. But, herein lies my problem.

I have added all users to the group "storage", and used the GID "storage" in the smbmount command.

According to the instructions in the link, this should be correct, and all members of that group should have read/write access to the Windows share.

It hasn't seemed to work out that way :-<

Only the addition of a UID, and then only for a single user, have I been able to grant write access to the share. The GID doesn't seem to have the affect one would expect.

I'm sure I'm missing something simple and obvious.

Thank-you for taking a minute to consider my question!

Kind regards.


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
Driver to read/write to MS Access DB w/Perl bpotts Linux - General 1 09-15-2005 10:24 PM
read write access phoenix_wolf Linux - Newbie 2 12-05-2004 10:35 AM
Read/Write access to a partition? Boggit Linux - Newbie 5 04-04-2004 04:05 PM
NTFS Partition Read/Write Access Help Bomb187 Fedora 6 03-17-2004 09:00 PM
read/write remote access to fat32 via samba totococo Linux - General 2 11-06-2003 04:00 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:46 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