02-07-2012
Quote:
So i manually created, copied skel files manually and changed the owner from root to selva. At the same time i observed that so many files copied from /etc to /home directory on the same time and some files owners are showing as selva.
We assume that you were logged in as "root" and typed one of more commands incorrectly which caused unexpected change to the system.
What did you actually type?
(If you have a .sh_history file , have a look at it with the "strings" command).
Ps. I can't read your ".jpg" attachments. Can you post in text?
Last edited by methyl; 02-07-2012 at 10:22 AM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hello
I search a script (ksh for Aix 5.3) to save all permissions, groups and owner for all files. Because we work much to change it, and a mystake ......!
So i want execute this script to save/ execute permissions for all files.
If you have this script, thank you for your help ;)
best... (2 Replies)
Discussion started by: pascalbout
2 Replies
2. Linux
I am unable to backup file on my tape drive
# mt -f /dev/st0 status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 0 bytes. Density code 0x25 (DDS-3).
Soft error count since last status=0
General status bits on (45010000):
BOT WR_PROT ONLINE IM_REP_EN
#... (6 Replies)
Discussion started by: real-chess
6 Replies
3. Programming
Helo
I havea particular file.
how I know ownerof the file as well as file permission using c program.
Regards,
Amit (4 Replies)
Discussion started by: amitpansuria
4 Replies
4. Shell Programming and Scripting
We have a program that when a new account is created using the webpage it creates a new directory on the linux filesystem for the account. The problem is the process that creates the directory is as root user, as I want ftpuser to be able to login I have to manually login and chown -R the... (1 Reply)
Discussion started by: borderblaster
1 Replies
5. UNIX for Advanced & Expert Users
Folks,
I have a problem with a particular file, that seems to have some kind of lock on it, that takes around 1 hour approx to timeout. I have used lsof and nothing has an open file handle on it, yet I cannot open it. My user/group owns the file and I can create edit/delete files in... (6 Replies)
Discussion started by: scottrus
6 Replies
6. Shell Programming and Scripting
Hi All,
I have to search for all files in the current directory where the owner having execute operation.
I can find the files with specific permission such as 666
find . -type f -perm 666
But how to find files with only execute permission to user.
tried with :
find . -type f... (3 Replies)
Discussion started by: gotam
3 Replies
7. Solaris
I try to use setfacl command to change the permission of the group primary it does not accept the command , it really accept but don't change the permission on the group. the point here I read that if I use chmod command on group primary the mask changed, but if I use setfacl mask should not... (0 Replies)
Discussion started by: hard_revenge
0 Replies
8. AIX
Friends,
I've tried to modify the syslogs permission by using the perm option in the syslog configuration in AIX 6.1 TL 05. But its not getting applied after the configuration. Have restarted the syslog service also.
Need your help!:wall:
The below are the conf details and os versions
>... (1 Reply)
Discussion started by: novaothers
1 Replies
9. Linux
Hello everybody,
I have many mount points on my virtual Redhat server, two of them lost their (write) permission, so they became read-only filesystems.
I fixed this problem.
But I want to know why it happened? What is the reason behind that to avoid it again? Where can I find related logs?... (2 Replies)
Discussion started by: Mohannad
2 Replies
10. Red Hat
After reboot of redhat 6 server , the owner of /dev/dm-? changed, causing the oracle disk group to show insufficient no of disk. how to identify which dm-? owner is changed.? (2 Replies)
Discussion started by: shivdeep77
2 Replies
LEARN ABOUT REDHAT
usermod
USERMOD(8) System Manager's Manual USERMOD(8)
NAME
usermod - Modify a user account
SYNOPSIS
usermod [-c comment] [-d home_dir [-m]]
[-e expire_date] [-f inactive_time]
[-g initial_group] [-G group [,...]]
[-l login_name] [-p passwd]
[-s shell] [-u uid [-o]] [-L|-U] login
DESCRIPTION
The usermod command modifies the system account files to reflect the changes that are specified on the command line. The options which
apply to the usermod command are:
-c comment
The new value of the user's password file comment field. It is normally modified using the chfn(1) utility.
-d home_dir
The user's new login directory. If the -m option is given the contents of the current home directory will be moved to the new home
directory, which is created if it does not already exist.
-e expire_date
The date on which the user account will be disabled. The date is specified in the format YYYY-MM-DD.
-f inactive_days
The number of days after a password expires until the account is permanently disabled. A value of 0 disables the account as soon as
the password has expired, and a value of -1 disables the feature. The default value is -1.
-g initial_group
The group name or number of the user's new initial login group. The group name must exist. A group number must refer to an already
existing group. The default group number is 1.
-G group,[...]
A list of supplementary groups which the user is also a member of. Each group is separated from the next by a comma, with no inter-
vening whitespace. The groups are subject to the same restrictions as the group given with the -g option. If the user is currently
a member of a group which is not listed, the user will be removed from the group
-l login_name
The name of the user will be changed from login to login_name. Nothing else is changed. In particular, the user's home directory
name should probably be changed to reflect the new login name.
-p passwd
The encrypted password, as returned by crypt(3).
-s shell
The name of the user's new login shell. Setting this field to blank causes the system to select the default login shell.
-u uid The numerical value of the user's ID. This value must be unique, unless the -o option is used. The value must be non-negative.
Values between 0 and 99 are typically reserved for system accounts. Any files which the user owns and which are located in the
directory tree rooted at the user's home directory will have the file user ID changed automatically. Files outside of the user's
home directory must be altered manually.
-L Lock a user's password. This puts a '!' in front of the encrypted password, effectively disabling the password. You can't use this
option with -p or -U.
-U Unlock a user's password. This removes the '!' in front of the encrypted password. You can't use this option with -p or -L.
CAVEATS
usermod will not allow you to change the name of a user who is logged in. You must make certain that the named user is not executing any
processes when this command is being executed if the user's numerical user ID is being changed. You must change the owner of any crontab
files manually. You must change the owner of any at jobs manually. You must make any changes involving NIS on the NIS server.
FILES
/etc/passwd - user account information
/etc/shadow - secure user account information
/etc/group - group information
SEE ALSO
chfn(1), chsh(1), passwd(1), crypt(3), groupadd(8), groupdel(8), groupmod(8), useradd(8), userdel(8)
AUTHOR
Julianne Frances Haugh (jockgrrl@ix.netcom.com)
USERMOD(8)