LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-25-2003, 09:05 AM   #1
djroketboy
LQ Newbie
 
Registered: Jun 2003
Distribution: RedHat 8
Posts: 13

Rep: Reputation: 0
user permissions


I would like to know how i can get 2 different users to work together. I have a user that logs in via FTP and uploads files.
Then i have my samba user (which is a different user) goto the FTP Samba share and moves the file to a specific directory (on a different drive)

but i'm finding that unless the ftp user logs in as my samba user, the samba user can't move the file from the ftp share.

is there a way that i can force the samba user to override the ftp users permissions?
 
Old 09-25-2003, 09:34 AM   #2
sidmark-2850
Member
 
Registered: Aug 2003
Posts: 133

Rep: Reputation: 15
Put the 2 users in a common group and make the directory RWX for the group you made.
 
Old 09-25-2003, 10:52 AM   #3
djroketboy
LQ Newbie
 
Registered: Jun 2003
Distribution: RedHat 8
Posts: 13

Original Poster
Rep: Reputation: 0
i did that, they are both in the "workgroup" workgroup....

i guess what would be the correct way to make the directory RWX for the group...
i did a "chown -R user:workgroup directory/" on the directory, but now im thinking that might not have been the right thing to do.
 
Old 09-25-2003, 04:11 PM   #4
sidmark-2850
Member
 
Registered: Aug 2003
Posts: 133

Rep: Reputation: 15
No. Not the same workgroup, the same user group. You will need to run the user configuration tool. What distro are you running. On Redhat 8+ is is redhat-config-users. I take it that the FTP user and the samba user will need write access to the folder. First, you create a group, eg data, then you add the samba user and the ftp user to the data group. You then set the permissions of the folder by doing chmod g+rws data <folder_name>.

Some reading material:
 
Old 10-02-2003, 07:23 AM   #5
djroketboy
LQ Newbie
 
Registered: Jun 2003
Distribution: RedHat 8
Posts: 13

Original Poster
Rep: Reputation: 0
ok i tried this, i created a new group called "data" for testing purposes. I added both users to that group.

then tried the "chmod g+rws data <folder_name>" and this is what i got....

Code:
# chmod g+wrs data reprodsk/
chmod: failed to get attributes of `data': No such file or directory
I am using redhat 8 w/ all the latest patches.

ok after playing around for a bit i noticed a few things.. i dunno if this will help solve the issue, but i'm strait out of idea's....

ok, now when Repro Desk client uploads the files (via ftp) to the ftp server it seems to set new permissions on the files? Because i have the main "incoming" folder set as so...
Code:
drwxrwsrwx    3 reprodsk data         4096 Oct  2 08:42 reprodsk
when going into that folder, the permissions have changed.

Code:
[root@taz reprodsk]# ls -l
total 12
drwxr-sr-x    2 reprodsk data         4096 Oct  2 08:42 00000001.3a0
-rw-r--r--    1 reprodsk data            8 Oct  2 08:42 latest.num
-rwxrwxrwx    1 reprodsk data         2608 Sep 24 15:56 reprodsk.Q
and the same goes for the actual file.
Code:
[root@taz 00000001.3a0]# ls -l
total 256
-rw-r--r--    1 reprodsk data       256205 Oct  2 08:42 sjob.zip

Last edited by djroketboy; 10-02-2003 at 07:49 AM.
 
Old 10-02-2003, 10:12 AM   #6
sidmark-2850
Member
 
Registered: Aug 2003
Posts: 133

Rep: Reputation: 15
You are using chmod the wrong way. You need to do:
Code:
chmod g+wrs reprodsk/
chgrp data reprodsk/
What FTP server are you using?
 
Old 10-02-2003, 10:29 AM   #7
djroketboy
LQ Newbie
 
Registered: Jun 2003
Distribution: RedHat 8
Posts: 13

Original Poster
Rep: Reputation: 0
Wu-FTPd...


and that still doesn't work, it doesn't apply the write/modify permission to the new items that were uploaded.

ok.. when creating a new directory w/ the samba user account, everything is fully (777) writable. Which is what i want. It's only when files are uploaded via FTP we seem to have different permissions set on the new uploaded files.

I really want to thank you for your patience, it's truely appreciated.

Last edited by djroketboy; 02-15-2011 at 11:19 AM. Reason: removal of personal info
 
Old 10-02-2003, 02:40 PM   #8
sidmark-2850
Member
 
Registered: Aug 2003
Posts: 133

Rep: Reputation: 15
No problem.

I am not familiar with Wu-FTPD. I am with ProFTPD. You may need to look at wu's documentation to see whether you can configure the permissions for uploaded files. I have something similar and it works with Pro. My directory options for that folder looks like:

Code:
<Directory /home/*>
	AllowOverwrite		on
	Umask			7117 5007
</Directory>
Actually, this otion specifies the upload permissions on home directories. Files will be created with -rw-rw---- and directories with drwxrwx---. There may be a umask option in Wu, but this is how I have to do it in Pro.

Hope this helps. Let me know if you find anything.
 
  


Reply



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
user permissions cubax Linux - Security 4 12-17-2004 01:48 PM
user permissions blubbfish Linux - Security 2 04-28-2004 06:33 AM
user permissions blubbfish Linux - Newbie 1 04-27-2004 01:22 PM
User Permissions BigDDave2001 Linux - Security 4 11-17-2003 05:43 AM
user permissions newpenguin Linux - General 7 11-07-2002 01:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:04 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration