samba permission on remote storage
Hi,
I setup three samba servers. The first two (2) samba 1 and samba 2 are on top layer with ultramonkey ipfail configuration with two interfaces, the public and private, so if any of samba 1 and samba 2 fails it can still save data on the mounted samba storage. Clients are accessing via a remote web server then calling a script the will scp a data to the data storage which is /home/rstorage. My problem is the permission here. On both samba1 and samba 2, when I create directories, the user and group are tagged as "500" and "apache" respectively, but on the remote server which is 192.168.10.4 the correct user.group permission is "site" are tagged which is correct. Is there a way I could force the created directories on samba1 and samba2 as user "site". Even am using the user "site", when I create it manually it still appeared as 500.apache, the reason why I cant scp file on the /home/rstorage. I tried forcing it to 777 but no avail. SAMBA 1 (192.168.10.1) drwxrwxr-x 2 500 apache 0 Feb 1 18:17 MyTransfer drwxrwxr-x 2 500 apache 0 Feb 1 16:30 test drwxrwxr-x 2 500 apache 0 Feb 4 2008 test2 [site@samba1 rstorage]$ df -h //192.168.10.4/nasstorage 59G 85M 56G 1% /home/rstorage SAMBA 2 (192.168.10.2) drwxrwxr-x 2 500 apache 0 Feb 1 18:17 MyTransfer drwxrwxr-x 2 500 apache 0 Feb 1 16:30 test drwxrwxr-x 2 500 apache 0 Feb 4 2008 test2 [site@samba2 rstorage]$ df -h //192.168.10.4/nasstorage 59G 85M 56G 1% /home/rstorage REMOTE SAMBA SERVER (192.168.10.4) drwxrwxr-x 2 site site 4096 Feb 1 18:17 MyTransfer drwxrwxr-x 2 site site 4096 Feb 1 16:30 test drwxrwxr-x 2 site site 4096 Feb 4 13:42 test2 [root@rstorage storage]# pwd /home/storage Thanks, Taj |
RE: samba permission on remote storage
Hi,
I had some similar issues until I set create mask, force create mode, directory mask and force directory mode as below. create mask = 0777 force create mode = 0777 directory mask = 0777 force directory mode = 0777 Obviously setting permissions to 0777 might be a bad thing depending on how you have set everything else up. HTH /JT_DeLaHoya |
Quote:
|
All times are GMT -5. The time now is 07:48 PM. |