LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-02-2004, 05:23 AM   #1
sanjith11
Member
 
Registered: Oct 2003
Distribution: redhat
Posts: 63

Rep: Reputation: 15
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.
 
Old 06-02-2004, 06:32 AM   #2
LuggerHouse
Member
 
Registered: May 2004
Location: Montreal,QC,Canada
Distribution: Fedora Core 7
Posts: 208

Rep: Reputation: 30
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...
 
Old 06-02-2004, 06:33 AM   #3
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
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.
 
Old 06-02-2004, 06:33 AM   #4
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
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.
 
Old 06-02-2004, 07:06 AM   #5
ingvald
LQ Newbie
 
Registered: May 2004
Location: Tromsų, Norway
Distribution: Slackware 9.1
Posts: 12

Rep: Reputation: 0
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.
 
  


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
Moving /home Directory? NovaBurst DamnSmallLinux 1 04-18-2005 10:59 PM
Moving my /home directory to another hd bumpert Linux - Newbie 6 07-26-2004 03:27 AM
moving a symlink in a directory e1000 Linux - General 2 02-23-2004 05:09 PM
Moving A Directory. reesee Linux - Newbie 6 02-04-2004 02:16 AM
Problem moving directory - invisible bits? slakmagik Linux - Software 9 12-01-2003 05:11 PM


All times are GMT -5. The time now is 09:39 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration