LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-03-2009, 08:31 AM   #1
nagavinodh
Member
 
Registered: Aug 2009
Posts: 118

Rep: Reputation: 15
how to restrict the user


Hi,
how to restrict the user . i red some commands like figure etc ...
how to implement that
 
Old 09-03-2009, 08:34 AM   #2
RaelOM
Member
 
Registered: Dec 2004
Posts: 110

Rep: Reputation: 16
What?
 
Old 09-03-2009, 11:03 AM   #3
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
Can you explain what you are trying to do?
 
Old 09-03-2009, 11:15 AM   #4
j_jerry
Member
 
Registered: Sep 2009
Distribution: fedora 11
Posts: 318

Rep: Reputation: 46
I think what you want to do is to restrict other user(s) from accessing some file(s), then chmod command will do

Last edited by j_jerry; 09-03-2009 at 11:16 AM.
 
Old 09-03-2009, 11:29 AM   #5
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Rep: Reputation: 41
Cool

HI nagavinodh,

As all others had said, it is not clear what exactly you are looking for. If you want to restrict user from accessing other files, then CHMOD will work for you. But, if you want to lock the user from log-in at all, then use :
usermod -L <username>
and this will lock the user in /etc/shadow file. To unlock the user , use :
usermod -U <usermod>
Remember, that these commands can be executed by administrator only.

Apart from these, there are few more ways of restricting users from logging in , or log-in in a restricted mode through /etc/inittab file, but those are a bit tricky and risky as well.

Hope this will help you.

Cheers,
kapil.
 
  


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
[SOLVED] restrict a user to certain command vikas027 Solaris / OpenSolaris 5 03-08-2008 03:58 AM
Restrict user sunhui Linux - Software 2 09-21-2006 06:11 PM
how to restrict ftp user manish_meet_in Linux - Newbie 9 05-31-2006 11:52 PM
how to restrict the user simi_virgo Linux - Newbie 2 02-25-2005 06:31 AM
How to restrict user (FTP)? Rex_chaos Linux - Networking 2 03-19-2003 04:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:24 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
Open Source Consulting | Domain Registration