LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

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

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
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 579

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

Code:
useradd -s /sbin/nologin  youruser
 
Old 02-14-2009, 05:33 AM   #3
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 770
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
 
  


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 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


All times are GMT -5. The time now is 06:48 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