When you created the two users, did you actually specify their UIDs as they had before with the -u switch (useradd -u UID)? Otherwise, this is going to cause permission issues as the system identifies a user by its UID, not by it's logon name. You have to change the permission of the home directory and the subsequent file/dirs like this:
You have to change the permission of the home directory and the subsequent file/dirs like this:
I wouldn't suggest that. There is no guarantee all files under that directory belongs to oradevx, nor that no files outside that directory belong to the same user. It is much better to fix the uid in the passwd and shadow files.
---------- Post updated at 01:16 ---------- Previous update was at 00:59 ----------
Quote:
Originally Posted by bartus11
On Solaris, usual location is /export/home/usename.
That's indeed an usual place where the home directories are stored. However, the best practice is still to follow the Unix tradition to have home directories accessed with /home/username. On Solaris, /home is by default handled by automountd which is used to map /home entries to their physical location when properly configured.
The find command with option -nouser is very useful for finding all the files and directories where the UID does not appear in /etc/passwd.
Similarly find with -user set to a numeric UID to find all files and directories for a particular UID whether or not it appears in /etc/passwd.
Obviously use the usermod command to adjust UIDs in /etc/passwd (NOT vipw or whatever). Always copy the /etc/passwd and /etc/shadow files before making any changes like this.
Got a question for you guys...I am searching through a public directory (that has tons of files) trying to find a file that I was working on a longggggg time ago. I can't remember what it is called, but I do remember the content. It should contains words like this:
Joe
Pulvo
botnet
zeus... (5 Replies)
Not an unix expert, I read a few pages on the web about passwd files, but I didn't find the answers I need about the last 8 lines of the passwd file I'm taking a look at.
I'm assuming their shortcuts to another file that may have the actual usernames of users on the system.
Please, any help... (1 Reply)
Hi Folks,
I have Solaris 10, latest release.
We have passwd aging set in /etc/defalut/passwd.
I have an account that passwd should never expire. Acheived by emptying associated users shadow file entries for passwd aging.
When I reset the users passwd using passwd command, it re enables... (3 Replies)
I have another problem. I have a text file in which I had written a number of quotations to use in my paper. Luckily, I know that the file is somewhere in my ~/UnixCourse directory or in some subdirectory directly or indeirently within it. I also know that the file name ended in '.txt'. I know i... (1 Reply)
Hi all,
As all of us know that in /etc/passwd file the first field correspond to username
could any one tell me what is bin , damoen etc in the first field, and r they in
user field , what is nologin in the last column ?
root:x:0:0:root:/root:/bin/bash ... (4 Replies)
Hi everybody,
I got a problem on my SUN server in Solaris 9. I'll try to explain, if somebody could help me.
I have mounted some volumes in RAID 0+1, that is stripped slices and then mirror. To be clear the result of metastat d80 is as follow :
d80: Mirror
Submirror 0: d81
State:... (2 Replies)
First time so excuse my ignorance please.
I may not be accurately describing the issue.
I have inherited a small lab mostly SUN V120s.
We lost power and are trying to recover.
Nope no backups...
The primary issue I have is 1 box is an Oracle Server.
It has 2 36Gb harddrives.
I am able to... (3 Replies)