LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-07-2009, 02:13 PM   #1
unclebyron
LQ Newbie
 
Registered: Jan 2002
Location: Hacienda Heights, California
Distribution: RedHat 7.2,Mandrake 8.3,Suse 7.3
Posts: 13

Rep: Reputation: 0
Mounted Directory Permissions Problem


I mounted a Windows 2000 server shared directory called Public onto a Linux computer running Red Hat Enterprise Linux ES kernal 2.6.9-42. I can copy/move files into the directory from the Linux box only when I am running as root. When I am an ordinary user on the Linux box, I'm denied permission. The Windows Public directory is shared out with full privleges to the Everyone group both locally and on the domain. I've tried creating an account on the Windows box with the same login/password as the ordinary user on the Linux box with full rights to the Public directory but it still fails. From the Linux box, I tried as root to chown and chmod on the mounted Public directory to the ordinary user but it wouldn't change anything. I suppose because it was a mounted directory. I still shows:

drwxr-xr-x 1 root root 4096 Jan 6 16:19 Public

If I create a directory on the Linux box and make the owner the ordinary user, as soon as it is made the mount directory, the rights become what you see above again.

I've heard of linking an Unix/Linux account with a Windows account using the command smbadduser but it wasn't on my Linux distribution.

What can I do to give the ordinary user on the Linux box permission to copy/move files to the mounted Public directory?
 
Old 01-07-2009, 04:18 PM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
I think adding umask=0 0 0 in fstab will do it.
 
Old 01-07-2009, 07:07 PM   #3
unclebyron
LQ Newbie
 
Registered: Jan 2002
Location: Hacienda Heights, California
Distribution: RedHat 7.2,Mandrake 8.3,Suse 7.3
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks

I have it working now......The trick was to mount it using CIFS and using the username/password of the ordinary user who became the owner of the mount point with the necessary rights........
 
  


Reply



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
directory permissions on mounted smb share in fstab glok_twen Linux - Server 2 02-18-2008 06:13 AM
Problem with file permissions on mounted fat drives kizersouzay Linux - Newbie 1 07-08-2006 10:34 AM
Problem with mounted partition permissions (users cant read it) rogerdv Linux - General 1 02-14-2006 02:48 PM
Permissions problem in mounted vfat partition SparceMatrix Linux - Security 3 04-04-2003 04:19 PM
Permissions problem in mounted vfat partition SparceMatrix Linux - General 2 02-17-2003 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:13 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
Open Source Consulting | Domain Registration