Problem in Change Password for user


 
Thread Tools Search this Thread
Operating Systems HP-UX Problem in Change Password for user
# 1  
Old 08-03-2014
Problem in Change Password for user

Dears,
I have a problem When I tried to change password for user in HP unix it gives me this error any one can help to solve this ?
Code:
bmcaddm@nmssrv05: /home/bmcaddm # passwd
Changing password for bmcaddm
Old password:
New password:
Re-enter new password:
vxfs: msgcnt 810034 mesg 001: V-2-1: vx_nospace - /dev/root file system full (1 block extent)Unexpected failure. Password file unchanged. Recommend running pwck command.

--
bmcaddm@nmssrv05: /home/bmcaddm # pwck
[/etc/passwd] emc:nxUcwGOmO7156:110:20::/home/emc:/sbin/sh
Login directory not found
[/etc/passwd] mds:J/u9Jvu5RCZTc:111:20::/home/mds:/sbin/sh
Login directory not found
[/etc/passwd] ovwebusr:*:112:107:HP OpenView TomcatB Servlet Container:/home/ovwebusr:/usr/bin/false
Login directory not found
[/etc/passwd] tftp:*:114:108:Trivial FTP user:/home/tftp:/usr/bin/false
Login directory not found
bmcaddm@nmssrv05: /home/bmcaddm #

# 2  
Old 08-03-2014
Your / file system seems to be full. Check with bdf / command and if yes, you MUST make some free space ASAP. Then try again. check if /home is part of / so you could move users files/directories somewhere else and make some quick free space.
# 3  
Old 08-03-2014
If /tmp is on the / filesystem, it is also a good place to look for files that can be removed.

After you get some space on /, you can clear the pwck complaints with the following commands (run with root privileges:
Code:
mkdir /home/emc /home/mds /home/ovwebusr /home/tftp
chmod 755 /home/emc /home/mds /home/ovwebusr /home/tftp
chown emc:20 /home/emc
chown mds:20 /home/mds
chown ovwebusr:107 /home/ovwebusr
chown tftp:108 /home/tftp

# 4  
Old 08-04-2014
You may also be able to search out big stuff with this:-
Code:
du -kx / | sort -n

It will list all directories on that filesystem (there may be lots of them) and sort them in ascending size order, so the last lines of output are the targets to examine first. You will see the subdirectories higher up and they all get counted into the parent's total. When you find a suspect area, change directory to it, then:-
Code:
du -kx . | sort -n

to check for large sub-directories and then find the largest files in this directory with:-
Code:
ls -la|sort -nk 5

Of course, this is assuming that there are large files to deal with. You could have many thousands of small files in /tmp or personal home directories if these are part of the root filesystem.



I hope that these pointers help, but BEWARE - don't just delete 'some large stuff' if you are not sure it can be removed. You may break your server, perhaps not now, but on next boot.



Good luck,
Robin
# 5  
Old 08-04-2014
Note that if the directory sort uses for temp files in on your full filesystem, the pipelines rbatte1 suggested may fail due to lack of space. If that is a problem for you, you could change:
Code:
sort

in any of those pipelines to:
Code:
TMPDIR=/fs/directory sort

where fs is the mount point of a filesystem that has some available space and directory is a directory on that filesystem where you would like sort to place its temporary files while sorting your data.
This User Gave Thanks to Don Cragun For This Post:
# 6  
Old 08-04-2014
Another method is to list recently modified files
Code:
find / -xdev -type f -size +100

Before you rm a file, check it with fuser. No output means not in use and safe to delete.
# 7  
Old 08-05-2014
Quote:
Originally Posted by MadeInGermany
Another method is to list recently modified files
Code:
find / -xdev -type f -size +100

Before you rm a file, check it with fuser. No output means not in use and safe to delete.
I'm not sure that the code from MadeInGermany does actually do this. To me, it looks like it finds files over 100 blocks (i.e. 100 x 512 bytes = 51,200 bytes) Searching by modification time uses the -mtime flag, more like this:-
Code:
find / -xdev -type f ! -mtime +5

.... to find files that are "not more than five days since last update"


When using fuser, I would caution you that a file not being in use does not necessarily mean that it is safe to delete. If you remove /usr/bin/rm because it's not in use, then you start getting into real trouble. There are many others that you should not delete too. I would add that your should know that you don't need a file before you remove it. Of course, OS critical files should not have been recently updated, so that gives you some protection there.

If there are some large ones that you don't recognise, post a (full path) list of them in CODE tags and we'll see if there is anything standard that you need to keep. Also be aware that database files will always be showing as newly updated. Hopefully, they will show as in-use, but it depends how your applications work.



Robin
This User Gave Thanks to rbatte1 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Not able to change user password

hi I am not able to change user password from root user. although it is saying updated successfully. but still I am not able to login direct to abc user. however I can login from root user by using su - abc # passwd abc Changing password for user abc. New password: BAD PASSWORD: it... (2 Replies)
Discussion started by: scriptor
2 Replies

2. Shell Programming and Scripting

How to change LPad user password?

Hi Gurus, I am lpad user in some of my server. I need to change password at certain period time. I am wondering what is the command to change the passwd. last time I asked my unix admin, they gave me a comand I chagned it. (I forgot to keep it in safe place, I lost it). this time when... (2 Replies)
Discussion started by: ken6503
2 Replies

3. Shell Programming and Scripting

Oracle DB user password change

Hi Experts, I am trying to write a shell script to change DB user password. Requirement: login to multiple DBs as multiple users and change their respective passwords. ex :users:T1,T2,T3 DB:X,Y,Z scenario: login as T1 to X,Y,Z change password login as T2 to X,Y,Z change password ... (2 Replies)
Discussion started by: navsan420
2 Replies

4. Solaris

Unable to change password for a user.

I am getting the following error message "passwd: User unknown: username" Permission denied error message when trying to change the password for that given user account. The user account is within the /etc/passwd file and I can also su to the account without any problems. This is sever is not... (11 Replies)
Discussion started by: eckmanb
11 Replies

5. Red Hat

how to force a user to change the password

RHEL 5 update 4. How to force a user to change the password at his next logon. Thanks in advance. (8 Replies)
Discussion started by: uxadmin007
8 Replies

6. UNIX for Dummies Questions & Answers

Using Crontab To Change User Password

Hi! I'm a bit noob on Unix/Linux world, so sorry any lame question i may make... Oh.. and my english too.. is not so famous lol.. The deal is to use crontab to change my admin password every weak to something like "mypasswordcurrrentday" that is... i want evey weak to change my password but... (2 Replies)
Discussion started by: OdinPT
2 Replies

7. UNIX for Dummies Questions & Answers

Can an FTP user change their own password?

If we set up FTP only users who can't log in with a shell (/bin/false type of shell) and set them up with a default password, like abc123 or something not secure, is there any way for the user to change their own password once they get on the system? (2 Replies)
Discussion started by: LordJezo
2 Replies

8. Solaris

User password change trace

In Sun Solaris we have given oracle user for dba that was shared among 5 member. Everytime oracle user password was changed themselves. We want to trace who has changed the password. It is possible. Regards P Manivannan (0 Replies)
Discussion started by: pmsuper
0 Replies

9. Solaris

how can I change user name and password , of account ?

passwd only changes the password but i need to change the user name tnx (5 Replies)
Discussion started by: umen
5 Replies

10. UNIX for Dummies Questions & Answers

Can't change password for a user

All, I am unable to change a password for the user called : poller I am logged in as root When I do the following command passwd poller New Password: Permission denied Whe i enter the new password, it gives the above error. When i log in as poller and then execute the command, then... (2 Replies)
Discussion started by: rahulrathod
2 Replies
Login or Register to Ask a Question