LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-27-2004, 01:02 PM   #1
onebyone
LQ Newbie
 
Registered: Jan 2004
Posts: 3

Rep: Reputation: 0
chmod : permission denied


I had my Linux installation crash so installed a newer version (Suse 9.0) on another drive (IDE).
I want to recover my email and other bits from the old drive so mounted it as su using
mount /dev/hdh3 /home/user/oldlinux
but when I ls -l the Mail directory I get
/bin/ls: Mail: Permission denied
I tried
chmod a+rwx Mail
but get
chmod: failed to get attributes of 'Mail' : Permission denied

I can copy some of the files and directories to the new drive and set permissions.

Am I missing something?

Any help would be welcome.
 
Old 01-27-2004, 01:11 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403
This is from the top of my head, but If I remember correctly mount mounts read only if you don't tell it otherwise.

See man mount for the syntax.
 
Old 01-27-2004, 02:02 PM   #3
onebyone
LQ Newbie
 
Registered: Jan 2004
Posts: 3

Original Poster
Rep: Reputation: 0
It seems to be mounted OK because I've copied some files and directories to the new drive. chmod works OK on the Documents and other directories.
 
Old 01-27-2004, 02:14 PM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403
Are you executing the chmod command as root or as a regular user?

Should be root (or the owner of the mail file(s)).
 
Old 01-27-2004, 02:29 PM   #5
onebyone
LQ Newbie
 
Registered: Jan 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Logged in as root and there are only a couple of directories I can't change. chmod works OK on the rest.
 
  


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
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 04:50 AM
why "permission denied" though chmod 666? baosheng Linux - Networking 12 10-10-2005 11:40 PM
BIND 9 Permission denied when chmod is 777 o_O KasperLotus Linux - Networking 10 09-07-2005 12:20 AM
BIND 9 Permission denied when chmod is 777 o_O KasperLotus Linux - Software 0 08-28-2005 11:42 PM
chmod permission change? tidasu Linux - Newbie 7 08-30-2004 06:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:00 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