LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 02-04-2008, 01:02 AM   #1
tajamari
Member
 
Registered: Jul 2007
Distribution: Red Hat CentOS Ubuntu FreeBSD OpenSuSe
Posts: 252

Rep: Reputation: 30
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
 
Old 02-04-2008, 01:10 AM   #2
JT_DeLaHoya
LQ Newbie
 
Registered: Jan 2008
Location: London
Distribution: CentOS
Posts: 5

Rep: Reputation: 0
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
 
Old 02-04-2008, 01:55 AM   #3
tajamari
Member
 
Registered: Jul 2007
Distribution: Red Hat CentOS Ubuntu FreeBSD OpenSuSe
Posts: 252

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by JT_DeLaHoya View Post
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
Thanks JT, I just placed create mask, but I also want it to be owned as "site" user.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to mount a remote storage unit in Gnome? werner1975 Linux - Software 1 09-27-2007 05:14 PM
Samba - dont have permission to browse samba share. Scrag Linux - Software 4 11-28-2006 01:42 AM
What set/change permission on usb storage artois_val Mandriva 3 09-12-2006 02:09 AM
Permission to remote users Hep Linux - Enterprise 0 02-02-2006 11:16 AM
hald - usb storage permission farsone Fedora 2 11-13-2004 04:32 PM


All times are GMT -5. The time now is 03:29 PM.

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