LinuxQuestions.org
Register a domain and help support LQ
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 12-04-2005, 11:18 AM   #1
desertViking
Member
 
Registered: Aug 2005
Location: Arizona
Distribution: Slackware 13, Arch Linux
Posts: 85

Rep: Reputation: 15
SAMBA read write access


Hi,

I am mounting a Windows partition from my Linux workstation. Using
Code:
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:
Code:
-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
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,596

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
Take a look here: http://www.justlinux.com/nhf/Filesys...rmanently.html

Last edited by bathory; 12-05-2005 at 05:00 AM.
 
Old 12-05-2005, 03:06 PM   #3
desertViking
Member
 
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.
 
  


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


All times are GMT -5. The time now is 07:29 AM.

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