LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-10-2014, 08:34 AM   #1
Ritz3127
LQ Newbie
 
Registered: Apr 2014
Posts: 7

Rep: Reputation: Disabled
Angry 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"
 
Old 04-10-2014, 08:35 AM   #2
mddnix
Member
 
Registered: Mar 2013
Distribution: Redhat, Ubuntu
Posts: 525

Rep: Reputation: 141Reputation: 141
Try
Code:
$ su - Ron
 
1 members found this post helpful.
Old 04-10-2014, 08:42 AM   #3
TDMBG
Member
 
Registered: Feb 2007
Distribution: CentOS
Posts: 34

Rep: Reputation: 17
What exactly are you doing, can you post some terminal input + output? Are you sure you are in the correct home?
 
1 members found this post helpful.
Old 04-10-2014, 09:10 AM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,711

Rep: Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279
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.
 
1 members found this post helpful.
Old 04-10-2014, 10:41 AM   #5
Ritz3127
LQ Newbie
 
Registered: Apr 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thumbs up Thanks Buddy

Quote:
Originally Posted by mddesai View Post
Try
Code:
$ su - Ron
Thanks Buddy, It worked....

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

Quote:
Originally Posted by jpollard View Post
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
 
Old 04-10-2014, 10:42 AM   #6
Ritz3127
LQ Newbie
 
Registered: Apr 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thumbs up Thanks Buddy

Quote:
Originally Posted by jpollard View Post
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
 
Old 04-10-2014, 11:50 AM   #7
Ritz3127
LQ Newbie
 
Registered: Apr 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
Can we copy entire Directory from One user to another

Can we copy entire Directory from One user to another user's home drive ?
 
Old 04-10-2014, 02:56 PM   #8
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,711

Rep: Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279
Sure - just be sure the final ownership of the resulting files is that of the destination.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] multiple user accounts with uid 0 . I want to delete all user names except "root" m00seman645 Linux - Newbie 2 10-21-2011 02:56 PM
Difference betwwen : Locked User Account & Disabled User Accounts in Linux ? avklinux Linux - Security 1 02-04-2009 03:30 PM
LXer: Linux 101: Manage user accounts in a multi-user Linux environment ... LXer Syndicated Linux News 0 06-27-2006 08:03 AM
User accounts captain chaos Slackware 2 03-01-2006 05:24 PM
User Accounts afair Linux - Newbie 3 09-19-2002 01:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration