LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   problem moving directory (https://www.linuxquestions.org/questions/linux-software-2/problem-moving-directory-188768/)

sanjith11 06-02-2004 05:23 AM

problem moving directory
 
how can i move a directory from one user area to another user area where both the users are not root.

whenever i try this iam geting permission not denied error.i am the owner of both the login.

LuggerHouse 06-02-2004 06:32 AM

if you are the owner of both users:

as user1:

chmod o+w theDirectoryWhereToMoveStuff

logoff
as user2

mv mystuff /home/user1/theDirectoryWhereToMoveStuff
chown -R user1 /home/user1/theDirectoryWhereToMoveStuff/*

logoff
as user1
chmod o-w theDirectoryWhereToMoveStuff

That should do the job...

trickykid 06-02-2004 06:33 AM

Re: problem moving directory
 
Quote:

Originally posted by sanjith11
how can i move a directory from one user area to another user area where both the users are not root.

whenever i try this iam geting permission not denied error.i am the owner of both the login.

Can you ellaborate some more, I've never heard of an error called "permission not denied".. that would indicate to me that it works. Exact error message, commands used, etc will be helpful.

aaa 06-02-2004 06:33 AM

Whatever user that wants to move the stuff will need write access to both the destination and the source. 'chmod' can be used to change permissions. You can make a certain directory that lets many users write to it, and move to and from there.

ingvald 06-02-2004 07:06 AM

If you have root-access to the box, you may also give both users the membership of eachothers groups. You should be able to do this with 'redhat-config-users'. Then 'chmod 770' on both home directories. This will give both users a more permanent access to eachothers home-directories, if that's what you want.


All times are GMT -5. The time now is 02:16 PM.