LinuxQuestions.org
Visit Jeremy's Blog.
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 11-03-2007, 12:54 PM   #1
dms05
Member
 
Registered: May 2006
Location: Wirral
Distribution: Mepis, Mint, PCLinuxOS
Posts: 57

Rep: Reputation: 15
Permissions denied


I've just started to get the error message 'Permissions Denied' when I try to access hda5 which is my /usr partition. My / partition is OK and shows Owner root-root and drwxr-xr-x but I can't access the details for /usr. I've no idea about Permissions so what can I do?
 
Old 11-03-2007, 12:57 PM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
How are you trying to access it?
 
Old 11-03-2007, 12:58 PM   #3
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
What does the "mount" command show you about hda5 ?
You should also have an entry in your /etc/fstab also.
 
Old 11-03-2007, 01:15 PM   #4
dms05
Member
 
Registered: May 2006
Location: Wirral
Distribution: Mepis, Mint, PCLinuxOS
Posts: 57

Original Poster
Rep: Reputation: 15
Mount shows:

$ mount hda5
mount: can't open /etc/mtab for writing: Input/output error

That's using Konsole as User rather than Root.

I get the same result if I try to mount from My Computer / Storage Media / hda5 and I also get the same result for a couple of SD cards and the XP hda2.
 
Old 11-03-2007, 01:17 PM   #5
dms05
Member
 
Registered: May 2006
Location: Wirral
Distribution: Mepis, Mint, PCLinuxOS
Posts: 57

Original Poster
Rep: Reputation: 15
I've now looked and don't seem to have anything called /etc/mtab either as User or when Root
 
Old 11-03-2007, 01:20 PM   #6
dms05
Member
 
Registered: May 2006
Location: Wirral
Distribution: Mepis, Mint, PCLinuxOS
Posts: 57

Original Poster
Rep: Reputation: 15
/etc/fstab shows:


# /dev/hda5, size=15470532, type=131: Linux native (extended)
/dev/hda5 /home ext2 noatime 1 2


Will anything be 'hidden'?
 
Old 11-03-2007, 01:46 PM   #7
dms05
Member
 
Registered: May 2006
Location: Wirral
Distribution: Mepis, Mint, PCLinuxOS
Posts: 57

Original Poster
Rep: Reputation: 15
hda7, which is my / partition shows the same output from mount as hda5 but I'm obviously accessing it (and can write text files back to /home/username

$ mount hda7
mount: can't open /etc/mtab for writing: Input/output error
 
Old 11-03-2007, 04:31 PM   #8
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Just try the "mount" command. If you type "mount hda7" chances are the mount command will think you're actually trying to mount a partition called hda7 (which is nonsensical anyhow). You can't mount generally as a non-root user hence the permission denied.
 
  


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
VSFTPD > Permissions Denied for Users Tommis Linux - Server 1 09-13-2007 04:38 PM
Permissions denied - changing directory rust8y Solaris / OpenSolaris 1 08-08-2006 08:22 PM
permissions denied mrbrucelee Linux - General 8 06-29-2006 03:29 PM
ALL permissions denied for root larry_linux Linux - Newbie 9 09-13-2005 01:15 AM
Denied Permissions Jeebizz Slackware 4 09-05-2004 04:08 PM


All times are GMT -5. The time now is 10:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration