I should note, from man useradd:
So it's not just smit that disallows these usernames, it's a general login requirement. If you force /etc/passwd to contain these entries it may misbehave, violate it at your own risk.
You should be able to get away with _0username if that will work for your purposes.
Do you have usermod available? You can do usermod -l _0username username to avoid the peril of editing /etc/passwd yourself.
Last edited by Corona688; 03-23-2011 at 05:17 PM..
I need to lockout about 250 user accounts on a server. I figure on putting the user accounts to be locked out in a text file and the running a script to go through the file and run the "passwd -l useraccount" against the /etc/passwd file (yes, I am root as I do this).
Here is what I have so... (3 Replies)
I want to add one line to the end of my crontab using a script.
I have tried piping in the editor commands, but I can't get it to work.
crontab -e user << EX
$a
This is the text I want to add.
.
wq
EX
This doesn't work. Is there an easier way to do this? (2 Replies)
Hi
I have this code, and i want work with a ls -shalR output in .txt
What i need read to do this??
Where start?
#!/usr/bin/perl
# Allrights- A perl tool for making backups of file permissions
# Copyright (C) 2005 Norbert Klein <norbert@acodedb.com>
# This program is free... (1 Reply)
Hi,
I have a script which connect to ATM's and pull two files from the ATM.
The which i try to pull is like
PIC20085200001*.JPG
First 7 digit consist of year montn and date as well
After todays execution i want to change the date to next date
I add few lines in the script but it is not... (6 Replies)
Hi
I am looking for script to modify /etc/shadow.
For example:
1-)User enters username
2-)The line of that user is found in /etc/shadow and *LK* is added infront of the second field in /etc/shadow.
How can I do this?
Thanks (7 Replies)
hello forum members,
I have a script which is used find the Uname and passwords and redirects into a output.txt file.I hardcoded a string "ciadev" but iwant search two more strings also "absdev" and "absprod" So modify this script please.
I am lookinmg forward from you,
please find the below... (2 Replies)
Hi Folks,
I have Solaris 10, latest release.
We have passwd aging set in /etc/defalut/passwd.
I have an account that passwd should never expire. Acheived by emptying associated users shadow file entries for passwd aging.
When I reset the users passwd using passwd command, it re enables... (3 Replies)
How can I modify this so it uses Seamonkey and goes to Yahoo Advanced Web Search
#!/usr/bin/python3
import os
import urllib
google = os.popen('zenity --entry --text="Enter what you want to google:
" --title="google.py"').read()
google = urllib.quote(google)
os.system('firefox... (8 Replies)