PDA

View Full Version : can't edit etc/inittab as nano/etc/inittab not working.....



Leond
28th August 2007, 06:53 PM
When I first loaded Fedora 7 (with KDE Desktop) the other day, I had problems (and some wonderful help) with getting the system to login correctly through the GUI, eventually it was sorted, but after a host of other problems, I reinstalled, this time (and a few installs before) I've had no ability to edit "etc/inittab"

This is what I've been getting....

[root@localhost ~]# nano/etc/inittab
bash: nano/etc/inittab: No such file or directory
[root@localhost ~]#


can any one help?!

Cheers

Mat
28th August 2007, 07:09 PM
just add a space after "nano"... :)

Leond
28th August 2007, 07:28 PM
Lol, knew it'd be something simple!...

Thought it was going to work, but I'm now just getting a blank screen in nano mode?

Any ideas?!

Cheers

jdillick
28th August 2007, 07:34 PM
Lol, knew it'd be something simple!...

Thought it was going to work, but I'm now just getting a blank screen in nano mode?

Any ideas?!

Cheers

also make sure it is:
nano /etc/inittab, and not nano etc/inittab (unless you current working directory happens to be / )

and you have to be logged in as root to edit that file.

hiberphoptik
28th August 2007, 07:43 PM
i would also suggest the -w switch to nano so it wont save the file wordwrapped :)

nano -w /etc/inittab

Leond
28th August 2007, 07:49 PM
Cheers Guys,

That's worked a treat, knew it'd be something simple that I was forgetting! Now written down in my new linux handbook lol!

Thanks.

jdillick
28th August 2007, 07:57 PM
i would also suggest the -w switch to nano so it wont save the file wordwrapped :)

nano -w /etc/inittab

Good call, yeah word-wrap does bad things to config files. Sorry, I'm so used to vi.