03-02-2007
thanks zazzy. I didn't know deleting a user would be so dangerous.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How do I delete all directories and files belonging to a particular userid in a directory and its subdirs? (9 Replies)
Discussion started by: abhilashnair
9 Replies
2. UNIX for Dummies Questions & Answers
Hi I am an Oracle DBA and I want to delete everything owned byOracle on the AIX server.
What command would do that? (5 Replies)
Discussion started by: sarangishere
5 Replies
3. AIX
how r u all,
i have AIX server which is kerberised, and i create a user on it called "sam"
when i want to assign a password for it i typed smit user then i choosed change password and i choosed the user " sam" when i press enter this message ' user 'sam' doesnt exist" appears.
then when i want... (2 Replies)
Discussion started by: abu7maid2005
2 Replies
4. UNIX for Advanced & Expert Users
Hi All,
Whenever I log in to my terminal and execute some cmds and then I type "history", I get the list of all the commands that I have executed.
I want to know where is the history been stored (any path location ?)
Secondly,if I want to delete the history or some part of the history, can... (9 Replies)
Discussion started by: shubhranshu
9 Replies
5. UNIX for Dummies Questions & Answers
Hi Professionals,
Need a way to restrict a user from his own directory so that he can't delete files from his directory but can read and write/overwrite. Is this information enuf for you people?
Pls reply.
Rgds,
Gaurav (2 Replies)
Discussion started by: gav_dhiman
2 Replies
6. UNIX for Advanced & Expert Users
hello,
Aside from userdel -r "username', are there any things needed to check before deleting a user? I wanted to cleanup user accounts and Im just worried if there are scripts or tasks created or owned by them that might be affected once I deleted the account. I normally login to their account... (2 Replies)
Discussion started by: lhareigh890
2 Replies
7. Shell Programming and Scripting
I want to delete all files and folders owned a user say abcuser in the folder /tmp .
Can you please give me the command ?
Thanks
Matt (2 Replies)
Discussion started by: lijjumathew
2 Replies
8. UNIX for Dummies Questions & Answers
I went to location where I need to delete all the files owned by me
I used the below code but it didn't work. It didn't throw any error but it hasn't deleted the files
find . -user username -exec rm -rf {} \;
Any suggestions please? (5 Replies)
Discussion started by: lakers646
5 Replies
9. Shell Programming and Scripting
I have following script to ping multiple ips but i want to delete ip.csv file content after running script .....but before deleting content i have ask user yes/No prompt depend on user input Yes/no ip.csv content will delete..
#!/bin/bash
for enodeb in `cat /tmp/ip.csv`
do
ping -c 2... (3 Replies)
Discussion started by: Ganesh Mankar
3 Replies
10. Shell Programming and Scripting
Good Afternoon,
I'm trying userdel -r username on Solaris 9 and getting
UX: userdel: ERROR: unable to find status about home directory: No such file or directory
I see the user's home directory and getent passwd shows the user
Anybody know what's causing it? (2 Replies)
Discussion started by: Stellaman1977
2 Replies
LEARN ABOUT CENTOS
audit_log_semanage_message
AUDIT_LOG_SEMANAGE_MESSAGE(3) Linux Audit API AUDIT_LOG_SEMANAGE_MESSAGE(3)
NAME
audit_log_semanage_message - log a semanage message
SYNOPSIS
#include <libaudit.h>
int audit_log_semanage_message(int audit_fd, int type, const char *pgname, const char *op, const char *name, unsigned int id, const char
*new_seuser, const char *new_role, const char *new_range, const char *old_seuser, const char *old_role, const char *old_range, const char
*host, const char *addr, const char *tty, int result)
DESCRIPTION
This function will log a message to the audit system using a predefined message format. It should be used for all SE linux user and role
manipulation operations. The function parameters are as follows:
audit_fd - The fd returned by audit_open
type - type of message: AUDIT_ROLE_ASSIGN/REMOVE for changing any SE Linux user or role attributes.
pgname - program's name
op - operation. "adding-user", "adding-role", "deleting-user", "deleting-role"
name - user's account. If not available use NULL.
id - uid that the operation is being performed on. This is used only when name is NULL.
new_seuser - the new seuser that the login user is getting
new_role - the new_role that the login user is getting
new_range - the new mls range that the login user is getting
old_seuser - the old seuser that the login usr had
old_role - the old role that the login user had
old_range - the old mls range that the login usr had
host - The hostname if known
addr - The network address of the user
tty - The tty of the user
result - 1 is "success" and 0 is "failed"
RETURN VALUE
It returns the sequence number which is > 0 on success or <= 0 on error.
ERRORS
This function returns -1 on failure. Examine errno for more info.
SEE ALSO
audit_log_user_message(3), audit_log_acct_message(3), audit_log_user_avc_message(3), audit_log_user_comm_message(3).
AUTHOR
Steve Grubb
Red Hat Jan 2012 AUDIT_LOG_SEMANAGE_MESSAGE(3)