 |
 |
'lock -p' not working
|
 |
|
 |
|
Junior Member
Join Date: Nov 2001
Location: SeaLab 2021
Status:
Offline
|
|
Lock is a grat command for locking a terminal session for a certina amount of time. The -p option sets the unlock password invoked to the the password of the currently logged in user. This is a great option to make an alias with. But for some reason, the command isn't recognizing my login password. I have tried changing the password to see if I could refresh the file, but it didn't work. I also took a look at '/etc/passwd', and didn't see my account there, which isn't a good sign. If anyone has any clues, please tell. Also, I think I might be onto something with looking into '/etc/passwd', but I don't know my uid or gid. If anyone knows where I can find that information, that would also be really helpful too. Thanks
Runeko Lovell
e-mail: lovellr@gmail.com
aim: runcoberry
|
|
One OS to Rule them all,
and in the Darkness [dramatic pause] Bind them.
-- Tiger
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Apr 2001
Location: Long Beach, CA
Status:
Offline
|
|
Passwords are not stored in /etc/passwd. They are stored in the netinfo database in OS X.
See:
nicl -raw /var/db/netinfo/local.nidb
or the Netinfo Utility in /Applications/Utilities
w/r to lock, it's not a utility I use.
|

ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status:
Offline
|
|
Looking at the source to lock, it's apparent that it hasn't been updated in a long time and the method it's using to obtain the user password won't work on modern operating systems where the user password is shadowed.
I have filed a bug with Apple about this (#4078586), but I wouldn't be hopeful about it being fixed until at least Tiger+1 (and doubtful even then).
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Oct 1999
Location: :ИOITAↃO⅃
Status:
Offline
|
|
In the meantime, might as well use the wonderful gnu screen, which comes with OS X.
Here's a nice little tutorial. You can lock a screen session with ctrl-A, ctrl-X.
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Apr 2001
Location: Long Beach, CA
Status:
Offline
|
|
Also, you can enable the traditional method of storing user information using the Directory Access application. You'll have to enable it and add it to the search path.
|

ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status:
Offline
|
|
Originally posted by Detrius:
Also, you can enable the traditional method of storing user information using the Directory Access application. You'll have to enable it and add it to the search path.
Even then lock won't work, btw. And you'll have absolutely zero tools out of the box for managing the database 
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|