Sponsored Content
Full Discussion: any goof ups like this?
The Lounge What is on Your Mind? any goof ups like this? Post 302142263 by zazzybob on Thursday 25th of October 2007 06:29:21 AM
Old 10-25-2007
A very similar userdel incident was caused by a Junior admin in my last job. We had a few users with their home directories set to /opt/appname. He was cleaning up, and used userdel -r to remove one of these users. I was oncall, and received a call from the helpdesk guys telling me that FooApp had stopped working. Turns out that FooApp didn't like it's entire directory tree removed from underneath it Smilie I spent the next few hours restoring from tape Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Newbie UPS help

I am a newbie and I just got a Sun Ultra 5, and want an UPS. I have been looking at the different models, but I do not know which brand has software that is compatable with Solaris 2.8 for automatic shutdown. I have looked at the power setup options in Solaris, but there doesn't seem to be any... (1 Reply)
Discussion started by: jeremiebarber
1 Replies

2. UNIX for Advanced & Expert Users

UPS for HP-9000

Hello Everyone I run 4 HP 9000 servers with HP-UX 11.0 on all 4, with an Infomix Database. About 6 months ago one system starting acting real weird it will display the message that it lost power (which did not) and it would shutdown, Then roughly 30 seconds later it would then say power has... (4 Replies)
Discussion started by: JackieRyan26
4 Replies

3. IP Networking

goof up

i did a vi on an executable in /var/sbin. now its created a file named # cd /usr/sbin # ls -l named* -rwxrwxrwx 1 root system 1 Oct 28 17:44 named -rwxrwxrwx 1 root ... (1 Reply)
Discussion started by: cubicle^dweller
1 Replies

4. Solaris

Suns and UPS tripplite

I'm having some trouble getting my ups to work on my Sun ultra enterprise servers. I have it hooked to serial port b and i have the tripplite power alert software installed and running, but it doesn't see the connection, is there something else i'm supposed to do to make it realize it is hooked to... (2 Replies)
Discussion started by: kymberm
2 Replies

5. Solaris

installing a UPS on a sun workstation

Has anyone ever setup the APC powerchute (business edition agent) software, using a USB drive on any solaris machines? We installed the software, and it doesnt seem to be giving the option for a /dev/usb device, it only gives options of /ttya, ttyb etc... anyone ever done this with a USB? or... (0 Replies)
Discussion started by: BG_JrAdmin
0 Replies

6. Solaris

UPS Installation

Dear All, I have installed package ups reillo in solaris but i could not use setup normaly, i could not connection with ttya , i need connect with ups for set system shutdown and another configuration. please i need help for solution thanks. (0 Replies)
Discussion started by: athurbayunata
0 Replies

7. Shell Programming and Scripting

script to poweroff when running on UPS

Hi all, The place where i stay experiences lot of power cuts and my solaris box is almost always on. It so happens that many times i will not be around to switch it off as soon as there is a power cut..(i also have UPS which provides alternative supply for 15min) So i wanted to write a script... (3 Replies)
Discussion started by: wrapster
3 Replies

8. UNIX for Dummies Questions & Answers

telnet via ssh to an APC UPS

Hello! First post, please be gentle! I have some APC UPS devices that I'm trying to log in to. They are currently configured to use telnet -- as a safety precaution, they can only be accessed from our 'bounce' machine. Because I want to do this from a script on my local machine, I'm doing it... (2 Replies)
Discussion started by: Korla Plankton
2 Replies

9. Hardware

CyberPower UPS

Is anyone here using this brand, and if so, how satisfied are you with its 'PowerPanel for Linux' software? Any problems? (0 Replies)
Discussion started by: Varsel
0 Replies

10. What is on Your Mind?

The green pop-ups...

Admins... I just lerve the pop-ups that appear whilst replying to someones post. It reminds me of "Paperclip" from my MS Windows days... ;oDD Love it, as it makes me smile, telling me I am creating a thread ATM... ;o) Neat little addition/feature guys... (4 Replies)
Discussion started by: wisecracker
4 Replies
userdel(1M)						  System Administration Commands					       userdel(1M)

NAME
userdel - delete a user's login from the system SYNOPSIS
userdel [-r] login DESCRIPTION
The userdel utility deletes a user account from the system and makes the appropriate account-related changes to the system file and file system. OPTIONS
The following options are supported: -r Remove the user's home directory from the system. This directory must exist. The files and directories under the home directory will no longer be accessible following successful execution of the command. OPERANDS
The following operands are supported: login An existing login name to be deleted. EXIT STATUS
The following exit values are returned: 0 Successful completion. 2 Invalid command syntax. A usage message for the userdel command is displayed. 6 The account to be removed does not exist. 8 The account to be removed is in use. 10 Cannot update the /etc/group or /etc/user_attr file but the login is removed from the /etc/passwd file. 12 Cannot remove or otherwise modify the home directory. FILES
/etc/passwd system password file /etc/shadow system file contain users' encrypted passwords and related information /etc/group system file containing group definitions /etc/user_attr system file containing additional user attributes ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
auths(1), passwd(1), profiles(1), roles(1), users(1B), groupadd(1M), groupdel(1M), groupmod(1M), logins(1M), roleadd(1M), rolemod(1M), useradd(1M), userdel(1M), usermod(1M), passwd(4), prof_attr(4), user_attr(4), attributes(5) NOTES
The userdel utility only deletes an account definition that is in the local /etc/group, /etc/passwd, /etc/shadow, and /etc/user_attr file. file. If a network name service such as NIS or NIS+ is being used to supplement the local /etc/passwd file with additional entries, userdel cannot change information supplied by the network name service. SunOS 5.10 8 Sep 1999 userdel(1M)
All times are GMT -4. The time now is 01:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy