LinuxQuestions.org
Help answer threads with 0 replies.
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 03-03-2012, 07:47 AM   #1
Micky12345
Member
 
Registered: Feb 2012
Posts: 58

Rep: Reputation: Disabled
move to another user's directory


how we can move to the home directory of someone else in your group
 
Old 03-03-2012, 07:55 AM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
It will all depend on the permissions given to the folder - the folder would need to be given group execute permission if group members are to be able to cd into it.
 
Old 03-03-2012, 08:28 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
cd ~<username>
 
Old 03-03-2012, 10:53 AM   #4
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 2,199

Rep: Reputation: 885Reputation: 885Reputation: 885Reputation: 885Reputation: 885Reputation: 885Reputation: 885
On my systems

If their permissions are set correctly, you cannot.

On my systems you could not. If you open permissions to allow that, there are potential consequences. The risk may be acceptable, depending upon what you wish to achieve. Why do you need this?
 
Old 03-10-2012, 07:12 AM   #5
Micky12345
Member
 
Registered: Feb 2012
Posts: 58

Original Poster
Rep: Reputation: Disabled
when i tried with cd ~username

only when i logged in as root i could do it
else couldnot move to the directory

can you tell me from from where i will get restrictions and permissions to move to another user's directory
 
Old 03-10-2012, 08:11 AM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,269

Rep: Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370
Quote:
only when i logged in as root i could do it
else couldnot move to the directory
That's right. That's the way it was designed and that is how it is meant to work. If you want to share data between users, the more standard method is to create a separate partition/directory. Don't know why you would want to do this as asked above?

Last edited by yancek; 03-10-2012 at 08:20 AM.
 
Old 03-10-2012, 08:49 AM   #7
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 4,553

Rep: Reputation: 1434Reputation: 1434Reputation: 1434Reputation: 1434Reputation: 1434Reputation: 1434Reputation: 1434Reputation: 1434Reputation: 1434Reputation: 1434
If you know the other user's password then you can use 'su <username>'. I do this quite often to move back and forth between my own account and a generic user account.

Last edited by allend; 03-10-2012 at 08:50 AM.
 
Old 03-11-2012, 07:57 PM   #8
Micky12345
Member
 
Registered: Feb 2012
Posts: 58

Original Poster
Rep: Reputation: Disabled
to use su we should know the password of others but its not necessary that we should


i want to know being a normal user which all directories i can enter and which all i can't and its reasons


i searched in google but i didn't find any

so plz help..........

i have such a question to do as an assignment for my bca
 
Old 03-12-2012, 06:06 PM   #9
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
If you want to know which directories you can enter, you need to google for 'linux file permissions' or similar. It should then tell you how to find the permissions for a file or directory using the 'ls' command if you have specific question, you are welcome to post back to the thread.

Hope you find what you're looking for,
 
  


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
move phpmyadmin directory ggalan Linux - Newbie 4 01-07-2012 04:07 PM
move stuff owned by one user by another user Geminias Linux - Newbie 4 07-12-2007 10:35 AM
move directory to another partition jackuret Fedora 13 04-22-2007 12:16 AM
how to move a directory ? graziano1968 Linux - General 6 11-29-2006 09:55 AM
write permissions for directory - not accidently move/deleted the directory linuxgamer Linux - Newbie 10 12-02-2003 03:04 AM


All times are GMT -5. The time now is 05:53 AM.

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