-   Linux - Software (
-   -   still problems with write permissions samba share (

pepijn 10-14-2003 12:36 AM

still problems with write permissions samba share

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
ator,password=pass,uid=0,gid=0,umask=0 rw 0 0

still get a warning in my browser:permission denied.

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

what is wrong?

motub 10-14-2003 04:38 AM

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

All times are GMT -5. The time now is 05:17 AM.