LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-01-2005, 12:23 PM   #1
rlhjr20002
LQ Newbie
 
Registered: Mar 2005
Posts: 2

Rep: Reputation: 0
Access Denied Error


I am an inexperienced Linux user who has Linux installed on my laptop. I am running Red Hat Linux. Until yesterday I was successfully able to read and write files to my hard drive as well as to my zip drive. However, I was only able to write to my ZIP drive from root. So, as an inexperienced but brave newbie I tried to fix it myself. I went to root, typed in 'chmod 777 /dev/sda4', deleted /mnt/zip250.0 and re-created it, and thought this would fix the problem.

Now, I cannot write to ANYTHING. No matter if I'm logged in as root or as myself, and no matter if I am trying to write to my zip drive or my hard drive, I cannot write files anywhere. I get the message "Access denied. Could not write to [directory]", where [directory] is whatever directory I'm trying to access.

I checked the permissions using 'ls -l' and the permissions on the directory are read+write, so I don't understand why I'm getting this. Can someone help? I'm going to lose my data!

Thanks to anyone who can help. Your assistance is greatly appreciated.
 
Old 03-01-2005, 02:07 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Chmoding devices can be problematic, though it should not have affected your hard drive. What are the permissions on your hard drive's device? Also please post the output of "mount" so we can see what options each partition has been mounted with.
 
Old 03-01-2005, 03:14 PM   #3
rlhjr20002
LQ Newbie
 
Registered: Mar 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks. Actually I solved this problem myself. I am learning that I must be careful creating directories as root. Without know not to do this, I had logged in as root and created a lot of directories. I was then trying to access them from a user account. I fixed this by changing ownership to the user.

The only unresolved issue I have is how to have read and write access to my Zip drive. I still get the "access denied" message. I mount it from root using 'mount /dev/sda4 /mnt/zip250.0'. It would be nice if I could access my zip drive from a user account, although if I can't get this fixed it's not the end of the world to me.
 
Old 03-01-2005, 03:42 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
First, what filesystem is on the zip disk? If it's fat32, you'll want to look into the umask option for mount.
 
  


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
Webmin: Error - Access Denied maerong Debian 6 10-25-2016 07:39 PM
Squid url port 81 access-denied error steve@korehicom.com Linux - Networking 0 10-13-2005 09:55 AM
mysql/php access denied error Chuck23 Linux - Software 3 02-15-2005 06:36 PM
Samba server: access denied error vharishankar Linux - General 7 09-07-2004 12:17 AM
MySQL: Access denied error Raptor Ramjet Slackware 5 02-22-2004 08:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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

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