LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 06-17-2005, 11:11 PM   #1
PensJunkie
LQ Newbie
 
Registered: Jan 2005
Distribution: Server Application of Fedora 7 (at the moment), I have played with many others however.
Posts: 27

Rep: Reputation: 15
write permissions on certain folders


Hi all, I just installed FC4 on my test machine. I was going through some .pl files I had lying around and one of them referenced the /misc directory. When it tried to write to the directory, I got a permission denied error. I cannot figure out why this is occurring. I chmodded the directory to 0755, and I'm also running as root. Were there changes implemented in FC4 that changed these permissions? Also I guess I should note that I have SELinux disabled. FWIW, the same thing occurs with the /sys, /net and /proc directories. Thanks for any and all help on this issue.
 
Old 06-18-2005, 01:38 AM   #2
Noth
Member
 
Registered: Jun 2005
Distribution: Debian
Posts: 356

Rep: Reputation: 30
1) Don't run as root.
2) Don't go around randomly changing rights on files/directories.

You can't create things in /sys or /proc, they're not real filesystems. They're representations of in-kernel data structures.

/misc and /net seem to be managed by automount, I've never used automount so I have no idea about them.
 
Old 06-18-2005, 11:23 AM   #3
PensJunkie
LQ Newbie
 
Registered: Jan 2005
Distribution: Server Application of Fedora 7 (at the moment), I have played with many others however.
Posts: 27

Original Poster
Rep: Reputation: 15
I was only running as root to try to get the problem fixed, and I wasn't just doing it for the fun of it either. I have a program that writes info to a file in that directory (/misc) and I would like for it to be able to do such. I didn't have a problem writing to that folder in any previous Fedora Core, so it doesn't make too much sense that it would be different in FC4. On the other hand, do you have any suggestions on where to point my program to write a file so that every user has access to it?
 
Old 06-18-2005, 12:45 PM   #4
Noth
Member
 
Registered: Jun 2005
Distribution: Debian
Posts: 356

Rep: Reputation: 30
Well I just looked and apparently /misc isn't a part of the FHS standard, so I have no idea what FC creates it for. I would probably put the file in something like /home/shared or something.
 
Old 06-20-2005, 07:17 PM   #5
PensJunkie
LQ Newbie
 
Registered: Jan 2005
Distribution: Server Application of Fedora 7 (at the moment), I have played with many others however.
Posts: 27

Original Poster
Rep: Reputation: 15
so i just remembered to check the system mail... evidently /misc and /net aren't being mounted correctly and they are being managed by automount. I have no idea how to even start fixing that. Please help! Let me know which log files etc you might need for me to post. Thanks!
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing file permissions within multiple folders cloudxiii Linux - Newbie 1 02-21-2005 12:20 AM
Permissions of new folders through samba doctorwebbox Linux - Networking 9 08-10-2004 12:46 AM
Settign permissions on folders reddog64 Linux - Newbie 3 04-19-2004 02:23 PM
Permissions for folders geolew Red Hat 4 09-03-2003 09:49 PM
Permissions with windoze folders sportjeep99 Linux - General 1 06-07-2001 10:07 PM


All times are GMT -5. The time now is 10:55 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration