LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-25-2004, 03:44 AM   #1
deWin
Member
 
Registered: Feb 2004
Distribution: Red Hat 9
Posts: 113

Rep: Reputation: 15
FTP access to home folder


Hello all,

I have several users setup on my RH9 linux box, each with it's own folder under the /home like /home/user01. If I login as user01 I can access my folder. I want a user "usermain" to have access to all home folders, so in other words the start folder should be /home instead of /home/usermain

How can I change usermain's permission or start folder to go to /home?

Thanks for all the big help guys.
 
Old 04-25-2004, 10:41 AM   #2
leckie
Member
 
Registered: Dec 2003
Location: Australia
Distribution: Mandrake 9.2
Posts: 151

Rep: Reputation: 30
changing the home directory of usermain to /home is not going to do anything as the setting is just a way to help users find there home folders, not perform permissions.


So basically you will have to do it with permissions, now this type of functionality is done by the group setting, so first you change the permissions of user folders to be 771, then you give each user there own group, if they already dont have there own group and then add the name of each users group to usermain group.


now this will give you read access to all the users, but not right access, YET.

now on unix we have stupidness, this is in the form of primary group and other groups.


So basically you can belong to any number of groups BUT only one master group.
And to edit one of the users folders you need there group name as your master group.
And changing the master group is done with a command which i have forgotten, someone look it up and report it.


Ow and you cannot add everyone to the same group as they would have access to each others home directory, just incase you think of doing this.
 
Old 04-25-2004, 11:36 AM   #3
-Nw- neX
Member
 
Registered: Apr 2004
Distribution: Gentoo, RHL, CentOS, Ubuntu, FreeBSD,
Posts: 88

Rep: Reputation: 15
rehat 9, be default, will add users to their own spesific group. you can override this, either using the GUI app, or on the command line using -g and -G [for secondary group].

vsftpd is the default ftp daemon for redhat 9, and the default setting in /etc/vsftpd/vsftpd.conf should be to allow users to access $HOME. 'local_enable' must be set to YES for this to work. you will want to make sure that the var 'chroot_local_users' is set to 'YES'. heres the bit from the conf file...
Code:
# Uncomment this to allow local users to log in.
local_enable=YES

[[ snip ]]

# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd.chroot_list
with chroot_local_users=YES, this will allow you to chroot some users, but not others by adjusting /etc/vsftpd.chroot_list.
 
Old 04-25-2004, 12:40 PM   #4
deWin
Member
 
Registered: Feb 2004
Distribution: Red Hat 9
Posts: 113

Original Poster
Rep: Reputation: 15
Thanks guys. I have Pure FTP.

@leckie: I don't mind all users having write access to other's folders because all users are myself, as long as there's no security issue it's fine.

Should I look for the same info in pureftpconf file?
 
Old 04-25-2004, 09:16 PM   #5
leckie
Member
 
Registered: Dec 2003
Location: Australia
Distribution: Mandrake 9.2
Posts: 151

Rep: Reputation: 30
well if that is the case then that should be simple enough, change all the relevant users to be owned by the group usermain and then set all permissions of these folders to 771.

there is no security risk, as long as root is trusted which most likely he is you so there is no issue.
 
Old 04-26-2004, 02:45 AM   #6
deWin
Member
 
Registered: Feb 2004
Distribution: Red Hat 9
Posts: 113

Original Poster
Rep: Reputation: 15
how do i change the users to be owned by the group? and what group would that be?
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Folder Max Size and Limiting SSH access to home folder. Mefistofeles Linux - General 4 11-26-2005 03:09 PM
permissions difference between /home/..../folder and /root/folder darkleaf Linux - General 3 07-21-2005 06:23 PM
Chmod = no access to home folder! DeathPrawn Linux - Newbie 4 02-12-2005 12:50 PM
gnome home folder and trash folder ambelos Linux - Software 2 02-24-2004 07:44 AM
Strange /ftp folder in /home odin123 Slackware 5 11-12-2003 01:49 AM


All times are GMT -5. The time now is 06:18 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration