LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   regarding User accounts (https://www.linuxquestions.org/questions/linux-newbie-8/regarding-user-accounts-4175501216/)

Ritz3127 04-10-2014 07:34 AM

regarding User accounts
 
I have created few user accounts and few groups. Now when I change user using [ su Ron ]and Try to create a new Directory or File under Home Directory,I am getting an error as "Permission Denied"

Madhu Desai 04-10-2014 07:35 AM

Try
Code:

$ su - Ron

TDMBG 04-10-2014 07:42 AM

What exactly are you doing, can you post some terminal input + output? Are you sure you are in the correct home?

jpollard 04-10-2014 08:10 AM

A bit more info:

su ron

only changes the UID... it doesn't change the current directory or use the environment for ron.

su - ron

changes the UID, and sets the shell as a complete login as ron, which includes using rons home directory.

Ritz3127 04-10-2014 09:41 AM

Thanks Buddy
 
Quote:

Originally Posted by mddesai (Post 5150043)
Try
Code:

$ su - Ron

Thanks Buddy, It worked....

---------- Post added 04-10-14 at 09:42 AM ----------

Quote:

Originally Posted by jpollard (Post 5150078)
A bit more info:

su ron

only changes the UID... it doesn't change the current directory or use the environment for ron.

su - ron

changes the UID, and sets the shell as a complete login as ron, which includes using rons home directory.

Thanks all... It worked for me

Ritz3127 04-10-2014 09:42 AM

Thanks Buddy
 
Quote:

Originally Posted by jpollard (Post 5150078)
A bit more info:

su ron

only changes the UID... it doesn't change the current directory or use the environment for ron.

su - ron

changes the UID, and sets the shell as a complete login as ron, which includes using rons home directory.

Thanks ....All

Ritz3127 04-10-2014 10:50 AM

Can we copy entire Directory from One user to another
 
Can we copy entire Directory from One user to another user's home drive ?

jpollard 04-10-2014 01:56 PM

Sure - just be sure the final ownership of the resulting files is that of the destination.


All times are GMT -5. The time now is 04:20 AM.