Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 01-04-2008, 06:29 AM   #1
LQ Newbie
Registered: Jan 2008
Posts: 1

Rep: Reputation: 0
Question How can I lock/unlock passwd file?

Hello Friends
How can I lock/unlock password file
Old 01-04-2008, 08:55 AM   #2
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I'll assume you mean /etc/passwd.

I am not aware of a mechanism to lock or unlock system files. In things like word processors, there are tools to have their files be password protected.

The method to control access to system files is the permission bits. These are set using chmod. You can also edit certain files to do other specific things. For example, removing the first "x" in an entry in /etc/passwd will allow login with no password.

Please give more information about what exactly you are trying to do.
Old 01-04-2008, 09:15 AM   #3
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
I moved your post to its own thread. Please ask new questions in new threads in the future.


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
Lock screen (requiring password to unlock) when resuming from suspend theoldman Linux - Laptop and Netbook 2 12-17-2009 10:35 PM
the problem of "unable to lock the passwd file" greenland666 Linux - General 3 11-10-2007 10:21 AM
lock and unlock munna_dude Programming 1 05-18-2007 07:03 AM
changed passwd doesn't unlock the screen cheez_m Ubuntu 1 11-13-2005 08:40 AM
About Lock And Unlock George2 Programming 8 08-24-2005 12:30 AM > Forums > Linux Forums > Linux - Server

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