LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-24-2003, 09:09 AM   #1
darkangel12613
LQ Newbie
 
Registered: Dec 2003
Posts: 3

Rep: Reputation: 0
Unhappy Can't get RW permission on a mounted samba share


I have mounted a samba share form my WinXP machine on linux in my fstab, but i cannot get RW permission as a normal user. Logging as root works fine .

Here is the line in my fstab:
//server/share /mnt/share smbfs auto,rw,username=guest,password= 0 0


I have also tried adding umask=000 but doesn't change anything

Note: I'm using Redhat9

Last edited by darkangel12613; 12-24-2003 at 09:22 AM.
 
Old 12-24-2003, 05:14 PM   #2
miaviator278
Member
 
Registered: Dec 2003
Location: Al-Diwania, Iraq (deployed)
Distribution: Slackware ONLY
Posts: 237

Rep: Reputation: 30
try adding uid=(your user id),gid=(your group id)
you can find them in your passwd file..
 
Old 12-21-2004, 09:34 AM   #3
Glitch010101
LQ Newbie
 
Registered: Mar 2004
Location: New York City
Distribution: Fedora Core 3
Posts: 4

Rep: Reputation: 0
gid=xxx,uid=xxx, setting directory permissions worked

I've done a lot of reading on this over the past day to get this working. It seems that there are two common problems keeping this from working for most people.

1.) directory permissions:

The user you want to have rw access to your smaba mount needs to have rw access to your mount point.

First, unmount the smb share. You cannot change the permissions of a mount point while a share is mounted to it.

You can either change the directory permissions by opening up the mount point to everyone
Code:
chmod 777 /mnt/yourMountHere
or by changing the group of the mount point to a group that your user is in.
Code:
chgrp yourUser /mnt/yourMountHere
then
Code:
chmod g+rwx /mnt/yourMountHere
Test this by changing to the user you want to write to the share as, then cd to the mount point (whille still unmounted) and try to create a file. You should now be able to, showing that your permissions on the linux side of things are OK.

2.) uid and gid settings:
Now you need to be sure that your fstab has the correct settings to allow that user to read and write to the mounted dir.

Here's my fstab entry

Code:
//serversus/Albums         /mnt/albums     smbfs  username=administrator,password=xxxxxxxxxx,uid=500,gid=500 0 0
Where the uid and gid pertain to the user and group I want to have access to the share. You can see your uid and gid for each user with the command
Code:
id yourUsername
 
Old 12-21-2004, 09:53 AM   #4
FiveFlat
Member
 
Registered: May 2003
Location: N. California
Distribution: FC3 2.6.9
Posts: 110

Rep: Reputation: 15
as root you need to:
#chmod u+s /usr/bin/smbmnt
#chmod u+s /usr/bin/smbumount

then as the USER create your folder you want to mount your XP share to.

Now you can mount your WindowsXP share like this:

$smbmount //WindowsXPbox/shared_folder /the/directory/you/created -o username=(your windows username)

It will then prompt you for your password - and again - it's your windows username password.
 
Old 12-21-2004, 09:54 AM   #5
FiveFlat
Member
 
Registered: May 2003
Location: N. California
Distribution: FC3 2.6.9
Posts: 110

Rep: Reputation: 15
do not chmod u+s smbmount.
 
Old 08-31-2006, 12:23 AM   #6
zpcanada
LQ Newbie
 
Registered: Aug 2006
Posts: 9

Rep: Reputation: 0
I can not do it using cifs file system

I followed the steps but still can not write to the mounted windows shared folder. I used cifs when mounting.
 
Old 08-31-2006, 07:04 AM   #7
Glitch010101
LQ Newbie
 
Registered: Mar 2004
Location: New York City
Distribution: Fedora Core 3
Posts: 4

Rep: Reputation: 0
Wow - I haven't thought about this problem in a while!

This turned out to be a combination of a few issues.

Try this first:
http://www.glitchnyc.com/static/tech...nnelFix.phblox

And if that fails, give this a shot:
http://www.glitchnyc.com/static/tech...ication.phblox

Hope that helps you!
 
  


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
export a mounted Samba share w/NFS nifflerX Linux - Software 3 07-18-2005 11:29 PM
samba: linux mounted share = choppy playback, windows mounted share = smooth kleptophobiac Linux - Software 2 04-10-2005 08:23 AM
Samba share permission issue cbekannan Linux - Security 4 03-11-2005 03:52 AM
Process dies when i try to browse mounted SAMBA windows share poko Linux - Software 1 08-12-2004 11:40 PM
filecopy from xp to samba slow, copy to mounted share fast xtra Linux - Software 6 07-29-2004 04:37 PM


All times are GMT -5. The time now is 03:55 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 Google+: linuxquestions
Open Source Consulting | Domain Registration