Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-24-2006, 11:48 AM   #1
Registered: Nov 2005
Distribution: FC4 & RHES
Posts: 105

Rep: Reputation: 15
most inobtrusive way to keep everything running, while keeping old users out

Hi. Wondering if "passwd -l" command is the most inobtrusive way to keep old users out, but keep processes running that may require username/password of that particular user in their scripts.

and of course, looking to eventually be able to remove that account entirely, and have any dependant apps effectively run on another owner's/group's account.

thx, b.
Old 02-24-2006, 01:58 PM   #2
Senior Member
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 61
I don't get what you are trying to say but you can effectively create a user that will have the permission for all the apps you want to run. You can also create a group for that same user and then add/remove users to that group. That will effectively let you run the apps for new users while keep old (expired or ineligible) users to not run that app.

For example, app ABC owned by user script and group script. You can do

chmod 750 ABC
Hence, user "script" would have -rwx rights while the group "script" would only -r rights.

Then whenever you add a new user, the add it to the script group and you will be all set.

Sorry for the verbose answer,
Old 02-24-2006, 02:31 PM   #3
Registered: Nov 2005
Distribution: FC4 & RHES
Posts: 105

Original Poster
Rep: Reputation: 15
OK, but for the next 20 minutes or so,

password -l simply means that no one can log on with that user name at all, until it is unlocked again, but processes that belong to that user can still run, correct?
Old 02-24-2006, 02:44 PM   #4
Senior Member
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
You mean a process that, say, is owned by that user?

password -l, iirc, should only affect logging into the system, not permissions.
Old 02-24-2006, 03:57 PM   #5
Registered: Nov 2005
Distribution: FC4 & RHES
Posts: 105

Original Poster
Rep: Reputation: 15
ok. thanks.


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
Keeping Linux job running stefaandk Linux - Newbie 3 06-14-2005 09:37 AM
Re-installation while keeping users? jme Linux - General 1 02-06-2005 08:35 AM
SSHD - keeping users in their own directory whitetiger0990 Linux - Software 3 01-02-2005 06:50 PM
chroot or keeping users to /home techrolla Linux - Security 9 06-22-2004 06:18 AM
Keeping a process running after disconnect steyr Linux - General 2 02-25-2004 07:03 AM > Forums > Linux Forums > Linux - Newbie

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