LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Puppy
User Name
Password
Puppy This forum is for the discussion of Puppy Linux.

Notices


Reply
  Search this Thread
Old 01-27-2008, 05:25 PM   #1
stripe21
LQ Newbie
 
Registered: Jan 2008
Location: Dorking, surrey
Distribution: ubuntu, puppy, suse
Posts: 19

Rep: Reputation: 0
Talking chmod and subdirectorys


im using puppy 3, and im am using this to access a freinds ubuntu system that is down. I can access the HDD's that he has, but i can not copy off all of his home directory documents and files.

I have tried

chmod 777 /mnt/sda1/home/tony

but this didn't work. So i looked at the chmod --help and see that i should of been using

chmod rwxXst //mnt/sda1/home/tony

This seamed to work better...... BUT when it came to accessing the subdirectorys it said that i couldn't as there was not right too this. What am i doing wong?
I would like to change ALL the files and directorys in the /home/tony/*.* open them up so i can copy them to another drive.
 
Old 01-27-2008, 05:28 PM   #2
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
The switch for recursion is -R
 
Old 01-27-2008, 05:31 PM   #3
stripe21
LQ Newbie
 
Registered: Jan 2008
Location: Dorking, surrey
Distribution: ubuntu, puppy, suse
Posts: 19

Original Poster
Rep: Reputation: 0
many thanks for getting back to me so fast...

So is the command line then


chmod -R //mnt/sda1/home/tony

or


chmod -RwxXst //mnt/sda1/home/tony
 
Old 01-27-2008, 05:36 PM   #4
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
chmod -R +/-wxrs

but you would probably only need

chmod -R +xwr /mnt/sda1/tony/*
 
Old 01-27-2008, 05:48 PM   #5
stripe21
LQ Newbie
 
Registered: Jan 2008
Location: Dorking, surrey
Distribution: ubuntu, puppy, suse
Posts: 19

Original Poster
Rep: Reputation: 0
ok it sounded like it did more as in the HDD spun for about 20 secs. wheni tried coping over and still got

Failed to predserve ownership
First ~':Operation not permitted


dose this mean thats it still a file permissions issue
 
Old 01-27-2008, 06:11 PM   #6
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Best thing is cd into the dir and do a 'ls -l' on some of the files. What command are you using to copy? scp or cp?
Please write the complete command here with the error.

Last edited by dive; 01-27-2008 at 06:14 PM.
 
  


Reply



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
chmod 775 to only the directories and chmod 664 to only the files? apachenew Linux - Security 6 09-27-2007 03:26 PM
cp a file to diferent subdirectorys of home Anibal Linux - General 2 04-20-2006 10:51 AM
chmod, external usb, vfat - can't chmod a directory itsjustme Slackware 2 04-02-2006 04:23 PM
CHMOD in shell : chmod 777 /usr/ <---is that right? cpanelskindepot Programming 5 07-16-2004 05:37 AM
.htaccess in subdirectorys phoeniXflame Linux - General 1 03-30-2003 02:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Puppy

All times are GMT -5. The time now is 05:16 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
Open Source Consulting | Domain Registration