LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 02-01-2002, 01:06 PM   #1
krivi
LQ Newbie
 
Registered: Nov 2001
Posts: 25

Rep: Reputation: 15
Question rc.local writing permission problem!


I have RH6.2 and one big problem.I am logged in as root but i dont have writing permission to /etc/rc.d/rc.local file.I have tried everything and chmoded it.Please help me anybody,i dont know what to do!
**************************************************
[root@localhost rc.d]# ls -l
total 60
drwxr-xr-x 2 root root 4096 Jan 30 20:20 init.d
-rwxr-xr-x 1 root root 2895 Jan 31 14:54 rc
-rwxr-xr-x 1 root root 2757 Sep 12 21:37 rc.local
-rwxr-xr-x 1 news news 2964 Mar 2 2000 rc.news
-rwxr-xr-x 1 root root 15419 Sep 12 21:37 rc.sysinit
drwxr-xr-x 2 root root 4096 Jan 19 18:14 rc0.d
drwxr-xr-x 2 root root 4096 Jan 19 18:14 rc1.d
drwxr-xr-x 2 root root 4096 Jan 19 18:14 rc2.d
drwxr-xr-x 2 root root 4096 Jan 19 18:14 rc3.d
drwxr-xr-x 2 root root 4096 Jan 19 18:14 rc4.d
drwxr-xr-x 2 root root 4096 Jan 19 18:14 rc5.d
drwxr-xr-x 2 root root 4096 Jan 19 18:14 rc6.d
[root@localhost rc.d]#
**************************************************

Please help me...
 
Old 02-01-2002, 01:23 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
the output of ls says you do.


What exactly are you doing when you get write errors

Last edited by DavidPhillips; 02-03-2002 at 06:40 PM.
 
Old 02-01-2002, 01:31 PM   #3
krivi
LQ Newbie
 
Registered: Nov 2001
Posts: 25

Original Poster
Rep: Reputation: 15
Question Text editor

I am using text editors to edit rc.local and trying to chage it.But every editor say that i dont have writing permisssions.(emacs,vi,pico,advanced x editor...).This is very big problem.There is no logical explanations.I dont know what to do,Please help me somebody!
 
Old 02-01-2002, 01:35 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
maybe the drive is mounted read only


run the command

mount

and

cat /proc/mounts

see what they say


or the file is locked by another editor already open

Last edited by DavidPhillips; 02-01-2002 at 01:41 PM.
 
Old 02-01-2002, 06:30 PM   #5
krivi
LQ Newbie
 
Registered: Nov 2001
Posts: 25

Original Poster
Rep: Reputation: 15
no

no,it is not a problem.Drive isnt read only and second...i said that i have tried everything...Please help me somebodyyyy.....
 
Old 02-01-2002, 07:08 PM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Is that the only file with a problem?

can you cp , mv, rm the file ?
 
Old 02-03-2002, 06:27 AM   #7
krivi
LQ Newbie
 
Registered: Nov 2001
Posts: 25

Original Poster
Rep: Reputation: 15
yes

Yes i can do cp,rm... ,it is just writing permission denied to root,but i cant understand it...
Please anybody real help me!
 
Old 02-03-2002, 09:26 AM   #8
krivi
LQ Newbie
 
Registered: Nov 2001
Posts: 25

Original Poster
Rep: Reputation: 15
please

Please help me anybody!!!
 
Old 02-03-2002, 09:32 AM   #9
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
ok ok... we heard you 4 times pleading for help.. this is a complicated issue which is hard to come by over a forum. calm down please.

since you can't seem to write any changes to the file, is it possible to copy the contents of the file, into a new file created then name it the same, keeping the old one renaming it to something else.. like with old in the filename.
 
Old 02-03-2002, 01:01 PM   #10
krivi
LQ Newbie
 
Registered: Nov 2001
Posts: 25

Original Poster
Rep: Reputation: 15
i tried

I tried to do that,but i cant...
Do you know some different place for help???
 
Old 02-03-2002, 04:22 PM   #11
krivi
LQ Newbie
 
Registered: Nov 2001
Posts: 25

Original Poster
Rep: Reputation: 15
/

Tell me where to find help,because this is the stuppid forum.Nobody can't help me.This forum is sheet.Please help me anybody...I just cant be root.
 
Old 02-03-2002, 04:34 PM   #12
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Re: /

Quote:
Originally posted by krivi
Tell me where to find help,because this is the stuppid forum.Nobody can't help me.This forum is sheet.Please help me anybody...I just cant be root.
with that type of response, why should we help you ?? what do you mean you can't be root ??

and i can edit my rc.local file with no problems... not sure why you can't ?? the internet is a big place for resources.. have you tried searching instead of depending on us stupid (spelled with one p not two ) people to point you in the right direction.

I am not trying to be rude or anything, but it seems you are the rude one, this is a free forum, it doesn't garantee any responses or solving your problem ever.

-trickykid

any problems with this site, you can go elsewhere for help.

Last edited by trickykid; 02-03-2002 at 04:38 PM.
 
Old 02-03-2002, 04:59 PM   #13
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
just to add, if you mean you can't be root while doing this.. that would make sense in why you can't edit that file.. only root can, only root can chmod it and so on... you should be able to do this with root or root privileges.... nothing else will work.

details helps anyone out the most when asking technical questions.. if you don't state it, how do we know..

-trickykid
 
Old 02-04-2002, 05:51 PM   #14
krivi
LQ Newbie
 
Registered: Nov 2001
Posts: 25

Original Poster
Rep: Reputation: 15
...

Still,i can't get help.If anybody know where is the problem please post that here.I said so many things about my problem.Above,there is a ls -l listing...
Please help me somebody...My root acount don't have a real power in some situations.In win4lin program he tell me that root is not allowed.But i am logged in as root and doing all root commands.Just in some cases there is a problem.
I CAN'T WRITE TO RC.LOCAL TOO(writing permission denied)!
 
Old 02-04-2002, 06:01 PM   #15
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
what do you mean root does not have real power in some situations, root should be able to do anything... with no exceptions.

i think by you calling everyone stupid here is not helping your situation in getting a faster or more solutions. but if your root can't edit the file, have you tried booting into single user mode without any login to edit the file... ??

Last edited by trickykid; 02-04-2002 at 06:43 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Writing permission for windows and linux partitions jaakkop Slackware 3 07-25-2005 06:14 AM
permission denied writing to /tmp rsteelman Linux - General 7 02-06-2005 07:10 PM
Permission denied writing to ext2 floppy s34n Linux - General 3 02-06-2005 12:20 PM
REd Hat + file permission + writing protection Einar Schlereth Linux - Software 14 01-27-2005 07:09 AM
Issues with UNIX Local Sockets permission ghoughto Programming 2 12-13-2004 06:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:03 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
Open Source Consulting | Domain Registration