LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   peculiar problem: can't change inetd.conf file (https://www.linuxquestions.org/questions/slackware-14/peculiar-problem-can%27t-change-inetd-conf-file-475017/)

sharathg786 08-18-2006 02:47 AM

peculiar problem: can't change inetd.conf file
 
Hi, i'm using slackware 10.2, this is kind of peculiar to me, the problem is i'm not able to edit the /etc/inetd.conf file even as root, i've checked the permission it has rw access to root, but the vi editor says the file is readonly.
what could be the problem? i just wanted to uncomment the telnet part of the file.

Tinkster 08-18-2006 02:56 AM

In the session you're in ... what's the output of
id
and
ls -l /etc/inetd.conf


Cheers,
Tink

sharathg786 08-18-2006 06:45 AM

thanx for the reply, here's the output of id:

uid=400(sharath) gid=500(sharathg) groups=500(sharathg),11(floppy),17(audio),18(video),19(cdrom)


and ls -l /etc/inetd.conf

-rw------- 1 root root 4606 2006-08-07 00:44 /etc/inetd.conf

gilead 08-18-2006 02:13 PM

If it's an ext2/ext3 file system, have you tried this:
Code:

chattr -V -i /etc/inetd.conf

Tinkster 08-18-2006 04:01 PM

Quote:

Originally Posted by sharathg786
thanx for the reply, here's the output of id:

uid=400(sharath) gid=500(sharathg) groups=500(sharathg),11(floppy),17(audio),18(video),19(cdrom)


and ls -l /etc/inetd.conf


-rw------- 1 root root 4606 2006-08-07 00:44 /etc/inetd.conf

That quite clearly states that you're NOT root? Odd enough
that you don't get "permission denied", though.


Cheers,
Tink

sharathg786 08-20-2006 07:15 AM

Quote:

Originally Posted by gilead
If it's an ext2/ext3 file system, have you tried this:
Code:

chattr -V -i /etc/inetd.conf


thanx, this helped!


All times are GMT -5. The time now is 02:30 PM.