473,405 Members | 2,160 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

change in /etc/passwd

Hi All,
Can any one tell me how can i make changes in /etc/passwd file ?
Is it right way to make changes with "vi" command in solaris ?
Or
Is there any other procedure or command like for LOCKING a user "passwd -l username".

Regards,
-Ali S
Aug 3 '07 #1
2 1123
bartonc
6,596 Expert 4TB
Hi All,
Can any one tell me how can i make changes in /etc/passwd file ?
Is it right way to make changes with "vi" command in solaris ?
Or
Is there any other procedure or command like for LOCKING a user "passwd -l username".

Regards,
-Ali S
Hi Ali. You may be better served by posting in the Linux/Unix/BSD Forum.

Hope that helps.
Aug 3 '07 #2
numberwhun
3,509 Expert Mod 2GB
Hi All,
Can any one tell me how can i make changes in /etc/passwd file ?
Is it right way to make changes with "vi" command in solaris ?
Or
Is there any other procedure or command like for LOCKING a user "passwd -l username".

Regards,
-Ali S
One of the first rules of administration in *nix is you DO NOT edit the /etc/passwd file. Commonly these days, it is shadowed and editing it directly is a very bad thing.

Depending on your version of *nix, you will want to fire up one of the user administration tools that come with your distribution.

Regards,

Jeff
Aug 4 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: dave | last post by:
Hello, I've got a php script that is trying to authenticate a user against a rh9 /etc/passwd file. The passwd file has permissions of 444 but when i try to log in i am being redirected to my error...
3
by: Max | last post by:
Hi, What is the best way to change passwords via php? I was first thinking of using the chpasswd function, but even though I added an entry for apache to be able to run chpassword vi visudo,...
1
by: Kempniu | last post by:
Hi there, I was wondering how do all the "free web space" services etc. work - when one fills in a form, he/she is automatically added to the system's userlist. How does this work? I mean, how...
0
by: Greg Patnude | last post by:
From: "Greg Patnude" <gpatnude@hotmail.com> Subject: pg_shadow --> passwd Date: Monday, October 13, 2003 6:04 PM Is there a way to "decrypt" a database users passwd stored in pg_shadow ??? my...
3
by: Tony Hunter | last post by:
Hello, I am trying to automatically login to websites after I have used SSO to get the credentials. For my test, I am working with my Yahoo account. The code that I am using is code that many...
2
by: rengaraj | last post by:
Hello. How can i manage that every user must change their password at the first login? With Suse 9.1 it works: "passwd -e user" But I use REDHAT 9.0 ... Kernel 2.4! here a flag like "-e"...
3
by: Rocky Zhou | last post by:
Today I found a problem, when I wrote a section of PHP code like this: <?php $fp = fopen("/etc/passwd","r"); if($fp) { echo 'ok!'; $result = fread($fp, 8192); return $result;
8
by: sathyashrayan | last post by:
Dear group, For a log-in page I have created a mysql db and user registers with a user name and password. The password field is encrypted with $passwd = sha1($_REQUEST); I insert the...
9
by: KDawg44 | last post by:
Hi, I am brand new to Python. In learning anything, I find it useful to actually try to write a useful program to try to tackle an actual problem. I have a syslog server and I would like to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.