LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 10-14-2003, 12:36 AM   #1
pepijn
LQ Newbie
 
Registered: Oct 2003
Posts: 1

Rep: Reputation: 0
still problems with write permissions samba share


Hi,

i have a windows directory which i have shared with linux redhat. Now i would like to write session files to a 'sessions'
directory in the shared /var/www/html/auchateau2003 with php. But it keeps telling me that it has no
permissions to write in that directory. i cannot change the permissions
from 755 to 777 as root.

this is part of my fstab file:

//windowspc/auchateau2003 /var/www/html/auchateau2003/sessions smbfs
username=administr
ator,password=pass,uid=0,gid=0,umask=0 rw 0 0

still get a warning in my browserermission denied.

Warning: open(/var/www/html/auchateau2003/sessions/sess_8e821e12e3b5ce440ed918bc05c51507, O_RDWR) failed:


what is wrong?

Last edited by pepijn; 10-14-2003 at 02:08 AM.
 
Old 10-14-2003, 04:38 AM   #2
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
You can't change permissions for partitions mounted by /etc/fstab except by editing /etc/fstab.

UID=0 is root. (the uid of root is 0). Open your user manager and get the correct uid and gid for the user and group that you want to give ownership to, and edit your fstab to reflect the correct ownership, then reboot. Check the permissions, and if they do not include write permissions, you will also want to edit the umask setting (see man umask and man chmod for more information).
 
  


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
Can't write to Samba Share perihelion Linux - Software 21 03-12-2012 10:39 AM
can't mount samba share and then write to the share calbazon Linux - Software 8 10-10-2010 01:35 AM
Can't write to Samba share from Windows Needlotsahelp Linux - Newbie 3 07-30-2005 08:32 PM
Can't write to Samba share erikcw Linux - Software 3 01-26-2005 03:59 AM
Can't write to Samba share...any suggestions? _TK_ Linux - Newbie 4 02-11-2001 03:27 PM


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