11-09-2007
Disablin login for system accounts
Hy everyone!
I'm trying to lock out system accounts on my Tru64 UNIX machines.
Wherever I look, it says only to put Nologin or *Nologin in password field of desired account in /etc/passwd.
But it doesn't work. I still
can su to that accounts. There are some accounts that already have Nologin in their password field and to that account I
cannot su.
What am I doing wrong?
Do I have to do something else besides adding Nologin in /etc/paswd?
I used vipw for editing passwd file, in case someone asks
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi, i noticed that there are still past logins which have not been terminated. how should i removed them?
i am on aix. (9 Replies)
Discussion started by: yls177
9 Replies
2. Solaris
Hi,
I'm new to solaris/ Unix and would like to know how to check in the system what
was the last login user were doing. Is there any way to check this? Thanks in advanced. (1 Reply)
Discussion started by: raziayub
1 Replies
3. HP-UX
Hello,
I'm new to HP-UX. I have a system running B.11.23 on ia64. The system gets its user passwords via active directory. Everytime a new account is added to AD a script pushes out the account info to all the systems and this system is updated too. However, on this machine, users are unable to... (2 Replies)
Discussion started by: BFLO
2 Replies
4. UNIX for Advanced & Expert Users
Hi,
I was add my shell script in /etc/rc.d/rc.local file
Eg.
sh /root/KernelModule.sh
my KernelModule.sh contain
insmod xxxxx.ko
insmod yyyy.ko
I have insmod 22 kernelmodule in this script , all the modules are my own driver modules.
now problem is my system is booting but... (2 Replies)
Discussion started by: rajamohan
2 Replies
5. UNIX for Dummies Questions & Answers
What is the command to list all UNIX system login accounts?
What is the command to list all system password parameters for UNIX(minimum length, complexity,age, invalid lockout attempts, expiration date , user inactivity lockout) (1 Reply)
Discussion started by: ma466
1 Replies
6. AIX
Guy's
I have AIX 6.1 has some slowness when I login to the system ..
When I login by user screen hangs for some time 20 seconds then it's give me the command prompt .. !
system is fine is working fine only this issue I faced can you please help me in this .. what's the expected reason... (2 Replies)
Discussion started by: ITHelper
2 Replies
7. Programming
I'm new to C++.
I have a text file named idpw.txt which is storing id and password
e.g
admin password
account1 abc
john hello
Here's my code so far:
bool login()
{
string user,password, user1, password1;
ifstream myfile("idpw.txt");
cout << "Please enter your username" <<... (3 Replies)
Discussion started by: andylbh
3 Replies
8. IP Networking
I have a website that I use sftp to connect to the root account. I am able to connect to it with
sftp root@domainHowever, when I create a new user, and try to login with this account, it says permission is denied.
I have already checked with my provider, and tech support said they can login... (9 Replies)
Discussion started by: trevthefatty
9 Replies
9. Solaris
Hi,
Am writing a script where I want to find uptime of certain servers. Is there any command where we can find uptime without login to the server, since the server list is big logging to the server will time consuming.
Thanks in advance (7 Replies)
Discussion started by: rogerben
7 Replies
VIPW(8) BSD System Manager's Manual VIPW(8)
NAME
vipw -- edit the password file
SYNOPSIS
vipw [-d directory]
DESCRIPTION
vipw edits the password file after setting the appropriate locks, and does any necessary processing after the password file is unlocked. If
the password file is already locked for editing by another user, vipw will ask you to try again later. The default editor for vipw is vi(1).
vipw performs a number of consistency checks on the password entries, and will not allow a password file with a ``mangled'' entry to be
installed. If vipw rejects the new password file, the user is prompted to re-enter the edit session.
Once the information has been verified, vipw uses pwd_mkdb(8) to update the user database. This is run in the background, and, at very large
sites could take several minutes. Until this update is completed, the password file is unavailable for other updates and the new information
is not available to programs.
The options are as follows:
-d directory
Change the root directory of the password file from ``/'' to directory.
If a vipw session is killed it may leave ``/etc/ptmp'', which will cause future vipw executions to fail with ``vipw: the passwd file is
busy'', until it is removed.
ENVIRONMENT
If the following environment variable exists it will be used by vipw:
EDITOR The editor specified by the string EDITOR will be invoked instead of the default editor vi(1).
FILES
/etc/master.passwd The current password file.
/etc/ptmp Temporary copy of the password file used while editing.
SEE ALSO
chpass(1), passwd(1), pwhash(1), passwd(5), passwd.conf(5), pwd_mkdb(8), user(8)
HISTORY
The vipw command appeared in 4.0BSD.
BSD
September 4, 2005 BSD