User's Home directory ownership is changing Automatically


 
Thread Tools Search this Thread
Operating Systems Solaris User's Home directory ownership is changing Automatically
# 1  
Old 05-11-2012
User's Home directory ownership is changing Automatically

Hi ,
on my Solaris 10 machine user's home directory ownership is being changed automatically to their UID. can any one please tell me whats the reason behind it .
users are there in /etc/passwd file . /etc/shadow file is also there along with nssswitch.conf file and there is no changes made to nsswitch.conf file . it has stand alone storage system not network file system involved in this.


Thanks
# 2  
Old 05-11-2012
Quote:
on my Solaris 10 machine user's home directory ownership is being changed automatically to their UID.
Smilie This is natural and usual. A user's home directory will always be owned by the user. Where's the confusion in it?
# 3  
Old 05-11-2012
Quote:
Originally Posted by admin_xor
Smilie This is natural and usual. A user's home directory will always be owned by the user. Where's the confusion in it?
they are owned by their username not by UID .
# 4  
Old 05-11-2012
The OS recognizes a user by its UID. The name is useful to human being, not to the computer. So it's the same. How are you checking the permission? Can you check with the following?:
Code:
ls -ld /export/home/user

Are you facing any permission/access related issue? (I am sure you are not)
# 5  
Old 05-11-2012
Quote:
Originally Posted by admin_xor
The OS recognizes a user by its UID. The name is useful to human being, not to the computer. So it's the same. How are you checking the permission? Can you check with the following?:
Code:
ls -ld /export/home/user

Are you facing any permission/access related issue? (I am sure you are not)
user home directory is owned by user itself . and its username name is mapped with /etc/passwd file where its uid reside. but my problem is its ownership is changed to UID which was previously owned by username. command which i am using for viewing ownership is ls -ltr .
# 6  
Old 05-11-2012
You need to start explaining from the beginning to help us understand the issue better!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

SunOS confusing root directory and user home directory

Hello, I've just started using a Solaris machine with SunOS 5.10. After the machine is turned on, I open a Console window and at the prompt, if I execute a pwd command, it tells me I'm at my home directory (someone configured "myuser" as default user after init). ... (2 Replies)
Discussion started by: egyassun
2 Replies

2. UNIX for Dummies Questions & Answers

User's home directory not being created

I am trying to create Oracle user. I will install oracle after that. But my problem is /home/oracle directory is not being created. bash-3.2# useradd -g oinstall -G dba,oper -d /home/oracle -m oracle cp: /home/oracle: Operation not applicable chown: /home/oracle: No such file or directory ... (3 Replies)
Discussion started by: hubatuwang
3 Replies

3. Shell Programming and Scripting

Changing ownership of a directory, subdirectory and files as same as in another server

accidentally i have changed ownership of a directory,subdirectory and files wil below command. I want to the change ownership back as same as in same directory on another server. How can i do it? chown -R user:group /u01 is there any simple script? it is really an urgent need.. (2 Replies)
Discussion started by: johnveslin
2 Replies

4. Red Hat

User's home directory

Hi, By default user's home directory will be /home/$user. I want to change it to /javauser/$user. How can I do it? Thanks Jeevan. (5 Replies)
Discussion started by: jredx
5 Replies

5. Solaris

Restricting SFTP user to a defined directory and home directory

Hi, I've created solaris user which has both FTP and SFTP Access. Using the "ftpaccess" configuration file options "guest-root" and "restricted-uid", i can restrict the user to a specific directory. But I'm unable to restrict the user when the user is logged in using SFTP. The aim is to... (1 Reply)
Discussion started by: sftpuser
1 Replies

6. Shell Programming and Scripting

Changing home directory

Hello All: I have an LDAP server that is used for authentication. Now the home directory id set to : /export/home/user1 . But I am logging in to different machines Solaris, Linux. The problem is I want the home directory to change depending on the os version (e.g. /export/home/user1/linux). Can... (1 Reply)
Discussion started by: disturbe_d
1 Replies

7. Shell Programming and Scripting

problem with changing default home directory

Hi I want to change the default home directory of a user by modifying the /etc/passwd. I have a user named John cat /etc/passwd | grep John john:x:503:506::/home/john/:/bin Here is my script: echo "Enter username"; read username; echo "Enter new home directory"; read new_path; ... (3 Replies)
Discussion started by: tjay83
3 Replies

8. UNIX for Dummies Questions & Answers

Can I prevent a user from changing the permissions on their home directory.

Hello All, I have a new HPUX system going into production and it will be used by 2 projects. One of the contract requirements is the 2 groups can not have access to the others work or data. I believe I have the system pretty well locked up using groups and permissions and selective mounting of... (2 Replies)
Discussion started by: DanL
2 Replies

9. UNIX for Advanced & Expert Users

File group ownership changing automatically

Hi everyone, Need help with an issue. The group ownership of files on my Solaris system is getting changed automatically. Could someone tell me the reason why? And how could I correct it? One more info- everytime the ownership changes, it changes to "x". Thanks :confused: (1 Reply)
Discussion started by: top_gun
1 Replies

10. UNIX for Dummies Questions & Answers

copy directory without changing ownership setting

hi currently i am migrating some directories over to a new server. is there any command (rcp or ftp or anything) for me to use without changing the ownership and permission of the directory? i am copying some directories from unix machine to linux machine. what is the exact command? thanks... (2 Replies)
Discussion started by: legato
2 Replies
Login or Register to Ask a Question