Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-01-2005, 12:23 PM
|
#1
|
|
LQ Newbie
Registered: Mar 2005
Posts: 2
Rep:
|
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.
|
|
|
|
03-01-2005, 02:07 PM
|
#2
|
|
Moderator
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,505
Rep: 
|
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.
|
|
|
|
03-01-2005, 03:14 PM
|
#3
|
|
LQ Newbie
Registered: Mar 2005
Posts: 2
Original Poster
Rep:
|
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.
|
|
|
|
03-01-2005, 03:42 PM
|
#4
|
|
Moderator
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,505
Rep: 
|
First, what filesystem is on the zip disk? If it's fat32, you'll want to look into the umask option for mount.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:02 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|