LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 11-19-2003, 10:53 PM   #1
zoa artcc chief
LQ Newbie
 
Registered: Nov 2003
Location: Toronto
Posts: 1

Rep: Reputation: 0
ftp acct/permissions


i'm running linux on my VPS server. using WEBppliance Pro3.5.20
I am trying to set up ftp accts for my website administrators, using the control panel i can set up the user accounts but it will not allow me to give them certain permissions like ex. user 1 only allowed access to /var/www/html/staff and nothing below that
there has to be a way to do this through ssl I have FULL root access to my box i tried this command
[root@deep ] /# useradd -d /home/var/www/html/staff/ -s /dev/null ftpadmin > /dev/null 2>&1
[root@deep ] /# passwd ftpadmin

root@deep ] /# vi /etc/shells



/bin/bash
/bin/sh
/bin/ash
/bin/bsh
/bin/tcsh
/bin/csh
/dev/null

root@deep ] /# vi /etc/passwd

ftpadmin:x:502:502::/home/var/www/html/staff/./ftpadmin/:/dev/null

this totaly messed up my control panel I did a restore of my server and its back to normal. however I'm still not sure how to add a user to my ftp server with permissions "only to access a certain directory"

pls help
 
Old 11-20-2003, 12:08 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
chroot is what your looking for and you can also not give them shell access by adding something like:

/bin/false

to your /etc/shells file. That's if you only want them to be jailed to a particular directory and not have any other access to the system with no shell access, etc.
 
  


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
FTP Permissions varunbihani Linux - General 2 03-24-2005 10:34 AM
ftp permissions on Konqueror geomatt Linux - Networking 3 04-07-2004 04:48 PM
ftp permissions race Linux - Networking 0 01-15-2004 02:33 PM
Permissions on FTP ntloser Linux - Security 1 12-28-2003 01:10 PM
FTP Permissions Wynd Linux - General 4 11-04-2003 09:53 PM


All times are GMT -5. The time now is 05:34 AM.

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