nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Restrict access to /root to any user using ftp

This is a discussion on Restrict access to /root to any user using ftp within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; Hi, I want to restrict the access to /root directory to all my ftp users. I mean to say that ...


Go Back   nixCraft Linux Forum > Linux Distribution > CentOS / RHEL / Fedora

Linux answers from nixCraft.


CentOS / RHEL / Fedora Discussion about Redhat Enterprise Linux or CentOS or Fedora Linux related problems.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-05-2009, 12:13 PM
Member
User
 
Join Date: Jul 2007
Location: Hyderabad
OS: Redhat RHEL, Solaris
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 3
vaibhav.kanchan is on a distinguished road
Default Restrict access to /root to any user using ftp

Hi,

I want to restrict the access to /root directory to all my ftp users. I mean to say that they should not access /root folder after loging to ftp server. Is there any entry in vsftpd.conf or any of the ftp configuration files. The users are using IE 7 to access their ftp directories.

Any suggestions on this..
Reply With Quote
  #2 (permalink)  
Old 08-05-2009, 05:31 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 244 Times in 183 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

By default nobody is allowed to go to /root dir. Can you tell us more about ftp server name and operating system? Is it vsftpd?
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 11-05-2009, 09:33 AM
Member
User
 
Join Date: Jul 2007
Location: Hyderabad
OS: Redhat RHEL, Solaris
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 3
vaibhav.kanchan is on a distinguished road
Default

Hi,

OS is RHEL 4 and ftp server name is ftp.server1.com . user name is ftpuser1.. Yes, it's is vsftpd.
Reply With Quote
  #4 (permalink)  
Old 14-05-2009, 01:41 PM
Member
User
 
Join Date: Jul 2007
Location: Hyderabad
OS: Redhat RHEL, Solaris
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 3
vaibhav.kanchan is on a distinguished road
Default SOLVED : Restrict access to /root to any user using ftp

I have solved the issue. I have added the user ftproot in chroot_list file.

# 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

restart the service and user will not be able to access any other directory except his/her home directory
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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


Similar Threads

Thread Thread Starter Forum Replies Last Post
restrict a user to certain command vikas027 Solaris/OpenSolaris 4 05-10-2009 02:17 PM
Mount as different User then root khalil_noura File Servers 2 28-04-2009 12:49 AM
Sendmail Root User ifti Mail Servers 0 06-02-2009 09:35 AM
restrict access of a user to two directories only vikas027 CentOS / RHEL / Fedora 0 15-04-2008 05:35 PM
Add normal user / FTP user usein NORMAL user(non-root) anilvrathod Shell scripting 0 07-12-2007 06:04 PM


All times are GMT +5.5. The time now is 02:07 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38