Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 01-30-2009, 11:31 PM   #1
Registered: Nov 2006
Location: Pune
Posts: 34

Rep: Reputation: 0
Set the linux user permission

Is it possible to setup a user account on a linux box, so that when that user logs in via FTP, he can only access files in their home directory? not in /usr or /tmp etc... directories.
Old 01-31-2009, 12:53 AM   #2
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 593

Rep: Reputation: 30
You can add a user like this

useradd -s /sbin/nologin  youruser
Old 02-14-2009, 05:33 AM   #3
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 780
Blog Entries: 6

Rep: Reputation: 75
one question is that you mean the user via ftp can go arround into system file ? there got to do with ftp daemon config file
what ftpd you are using?

Exra Information for adding user
1) the user be able to do ftp as normal
2) also able to change password them self

for no.2. need to do this way
# echo "/usr/bin/passwd" >> /etc/shells

after you adduser, edit /etc/passwd change from /bin/bash or from /sbin/nolgin to /usr/bin/passwd for that user line and save it

or you can do adduser -s /usr/bin/passwd youruser

with this way, user can change thier own pass with ssh to the box and it
work only for that purpose

Last edited by routers; 02-14-2009 at 05:54 AM. Reason: extra


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Permission to set the Clock in Debian Linux naCougar Linux - Newbie 6 09-25-2008 09:49 AM
Enabling printer permission to user in suse linux 10.0 Ismail Shariff Linux - Newbie 1 06-26-2008 02:59 AM
How can I set the permission on the home directory when creating an user crisostomo_enrico Solaris / OpenSolaris 4 09-26-2007 06:24 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration