It seems the only major difficulty that still exists for me in swapping from WIN to LINUX is the management of PERMISSIONS!!
For me it is a convoluted hit and miss affair … and is continually proving a thorn in my side.
The latest nightmare is trying to get the correct permission allocated to simply mounted network shares!! Why is it so difficult???
My WorkStation runs latest pclos 2009.1 KDE … it contects to shares from two other machines .. one an XP ‘fileserver’ that holds all dynamic data files and the other is a LAMP server running under pclos 2007 GNOME … my local LAMP host.
The XP Fileserver exposes SAMBA shares to the network … the LAMP Server exposed NFS shares to the network.
These XP and LAMP shares are mounted on my PCLOS workstation via the Control Centre >> Network Sharing >> Configure NFS / Windows Shares
Here is the fstab file:
########################
#Entry for /dev/hda5 :
UUID=b8ed29e5-ff38-483d-b639-102d2617b8de / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
#Entry for /dev/hda7 :
UUID=98656360-c225-4f8b-a7b5-3cf7d96e856b /home ext3 defaults 1 2
#Entry for /dev/hdb2 :
UUID=BC5C0CB25C0C6A0A /media/Spare_NTFS ntfs-3g defaults,locale=en_US.UTF-8 0 0
#Entry for /dev/hda1 :
UUID=7EB016B7B01675BD /media/hda1 ntfs-3g defaults,locale=en_US.UTF-8 0 0
//pc-cme/Foyer /mnt/Foyer cifs user,credentials=/etc/samba/auth.pc-cme.administrator,sync,soft 0 0
//pc-cme/JohnStuff /mnt/JohnStuff cifs user,credentials=/etc/samba/auth.pc-cme.administrator 0 0
//pc-cme/MAXBin /mnt/MAXBin cifs user,credentials=/etc/samba/auth.pc-cme.administrator,sync,soft 0 0
//pc-cme/Music /mnt/Music cifs user,credentials=/etc/samba/auth.pc-cme.administrator,sync,soft 0 0
//pc-cme/Photos /mnt/Photos cifs user,credentials=/etc/samba/auth.pc-cme.administrator,sync,soft 0 0
//pc-cme/Storage /mnt/Storage cifs user,credentials=/etc/samba/auth.pc-cme.administrator,sync,soft 0 0
lnxlamp:/var/www /mnt/www nfs user,sync,rsize=8192,wsize=8192,soft 0 0
none /proc proc defaults 0 0
#Entry for /dev/hda6 :
UUID=5a9c8cd5-f653-49ee-942d-b919c5e9cd5b swap swap defaults 0 0
#######################
The the directories under “/mnt”, of course are owned by ROOT, but have been given 777 permissions by root prior to mounting.
The problem is that everytime a file is written to any of the mounted shares from my workstation [logged on as a USER, not ROOT] i get the message …
“Could not change permissions for <filename>”
… for each file that is copied/moved to the mounted share, whether it the SAMBA or NFS share.
I think i understand the reason why …. it is because the Mount Points on my PCLOS client are owned by Root … and while these Moutn Points have been given 777 permissions, it does not permit the permissions of the files to be altered by a user other than root, following transfer to their respective servers [Why is it trying to ‘change permissions’ anyway????]
I thought i would fix it by moving the mount points on my WorkStation to within the “/home/myusername” directory, and ensured that the Mount Points were Owned by me and my group!!!
Sounds logical *keh?* …
HOWEVER, following remounting of the shares to these ‘USER owned’ mount points, the system forces a change of ownership of my Mount Points to that of ROOT!! … and i find i am back in the same position as when the Mount Points where under “/mnt”!!
And, annoyingly, the problem persists!!
Any clues GURUS … *smile*???
Thx Rfah