Linux - SecurityThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.