Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 13th February 2010, 01:29 AM
tommycomeau Offline
Registered User
 
Join Date: Feb 2010
Posts: 4
linuxfedorafirefox
id:5:initdefault: permission denied. . as root?

I installed fedora 11 on an old laptop, and want to disable the gui so I have to work straight from the command line. (This machine is only for learning

I login, fire up a script and enter:

[tommy@localhost ~]$ /etc/inittab
bash: /etc/inittab: Permission denied

[tommy@localhost ~]$ su
Password:
[root@localhost tommy]# /etc/inittab
bash: /etc/inittab: Permission denied

Why would my permission to edit the id:5:initdefault: be denied when I am trying to edit the file as root/su?

Thanks!
Reply With Quote
  #2  
Old 13th February 2010, 02:04 AM
stoat Offline
Registered User
 
Join Date: Jun 2006
Posts: 7,551
linuxfedorafirefox
Quote:
Originally Posted by tommycomeau

I login, fire up a script and enter:

[tommy@localhost ~]$ /etc/inittab
bash: /etc/inittab: Permission denied

[tommy@localhost ~]$ su
Password:
[root@localhost tommy]# /etc/inittab
bash: /etc/inittab: Permission denied

Why would my permission to edit the id:5:initdefault: be denied when I am trying to edit the file as root/su?
Hello tommycomeau,

You need to open that file with an editor. Examples...
Code:
su
gedit /etc/inittab
Code:
su
vi /etc/inittab
Code:
su
nano /etc/inittab
Reply With Quote
  #3  
Old 13th February 2010, 03:19 AM
jenaniston's Avatar
jenaniston Offline
Registered User
 
Join Date: Dec 2009
Location: Malibu, California
Posts: 318
linuxubuntufirefox
Quote:
Originally Posted by tommycomeau View Post
I installed fedora 11 on an old laptop, and want to disable the gui so I have to work straight from the command line. . . .
to an editor like vi . . .
Code:
[tommy@localhost ~]$ su -
[root@localhost ~]# cd /
[root@localhost /]# vi /etc/inittab
But why set up to always start up and run in text mode . . . ?

A very nice part about Fedora, if you are in terminal you can just change to the runlevel 3 . . .
that is not the same in Debian/Ubuntu where only runlevel 2 is used for both text mode and GUI.

Code:
# init 3
gets a black and white terminal screen - no GUI

Note . . . # init 5 may get you back to runlevel 5 if you have already booted to it . . . or a command like # gdm . . . I'm not positive.

Last edited by jenaniston; 13th February 2010 at 03:21 AM.
Reply With Quote
  #4  
Old 13th February 2010, 03:35 AM
smr54 Online
Registered User
 
Join Date: Jan 2010
Posts: 4,980
linuxopera
Why start in a GUI? Text mode gives more flexibility. If there are troubles with video cards--look around these forums for all the people who can't boot, and ONLY because they start in GUI mode.

Uses fewer resources--remove the rhgb quiet, and you can see what's going on while booting, which can be handy for troubleshooting.

The vast majority apparently prefer GUI mode, but you'll find, especially if you start digging more into the internals, that text mode can have many advantages. For example, as I boot into text mode, the only reason I knew about that whole root login issue was through these forums. It didn't affect me.

To the OP, however--be aware that Fedora and some of the other desktop distros, tie some of the networking and other functions to the GUI. Hopefully, you're already aware of that and know how to work around it.

@jenaniston (great nick, by the way, loved ya in Office Space, and don't worry, Brad wasn't good enough for you anyway), typing init 3 to get to console is fine, but.... see my first paragraph, often, due to various video card issues, sometimes, someone can't get into GUI mode, and the init 5 default can prevent them from getting into the system.
Reply With Quote
  #5  
Old 13th February 2010, 03:38 AM
tommycomeau Offline
Registered User
 
Join Date: Feb 2010
Posts: 4
windows_xp_2003safari
well I'd be happy to have everyone's opinion but my thoughts on disabling the gui:

I dont have any programming experience and grew up on all windows machines, so I thought disabling the GUI would force me to work from the command line and thus, I can teach myself some basic linux..
Reply With Quote
  #6  
Old 13th February 2010, 04:26 AM
jenaniston's Avatar
jenaniston Offline
Registered User
 
Join Date: Dec 2009
Location: Malibu, California
Posts: 318
linuxfirefox
Quote:
Originally Posted by smr54 View Post
Why start in a GUI? Text mode gives more flexibility. If there are troubles with video cards--look around these forums for all the people who can't boot, and ONLY because they start in GUI mode.

Uses fewer resources--remove the rhgb quiet, and you can see what's going on while booting, which can be handy for troubleshooting.
. . .
To the OP, however--be aware that Fedora and some of the other desktop distros, tie some of the networking and other functions to the GUI. Hopefully, you're already aware of that and know how to work around it.

. . .typing init 3 to get to console is fine, but.... see my first paragraph, often, due to various video card issues, sometimes, someone can't get into GUI mode, and the init 5 default can prevent them from getting into the system.
I totally agree . . .

the OP seemed though to be having some problem with editing . . .
and getting into root with permissions.

As they were already in a command terminal in runlevel 5 and wanting to get into 3,
I just thought # init 3 was an easy, albeit temporary, way . . .
but only as long as they are hopefully in Fedora . . . it is a simple option some lesser distros just do not have.


I am wrong about it being so easy to get back to GUI - that I dunno.

But my F12 KDE USB Live - after I did the init 3 and then shutdown by command
Code:
# shutdown -h now
then of course booted back up to the full KDE plasma workspace desktop and runlevel 5 -
as my initialization files were never changed.

Yes, learning linux from the terminal will be very good. You can still do that from the terminal in the gui as well -
at least make the background color of the terminal easier on the eyes -
but whatever works best . . . the option is yours in linux and fedora.
Reply With Quote
  #7  
Old 13th February 2010, 04:55 AM
smr54 Online
Registered User
 
Join Date: Jan 2010
Posts: 4,980
linuxopera
Hrm, it should be easy to get back to the GUI. In the later versions of Fedora, you should be able to get out of it with ctl+alt+Fwhatever and back to it with ctl+alt+F1---if not F1, then F7. In theory F1, but I haven't found that to be consistent. Nor have I done much with live CDs.

As you state, yes, the option is still ours.
Reply With Quote
  #8  
Old 13th February 2010, 02:49 PM
tommycomeau Offline
Registered User
 
Join Date: Feb 2010
Posts: 4
windows_xp_2003safari
thanks for the help all! its fun but man can be frustrating/tricky at the begining. .=)
Reply With Quote
  #9  
Old 13th February 2010, 04:35 PM
smr54 Online
Registered User
 
Join Date: Jan 2010
Posts: 4,980
linuxopera
It can be frustrating, but after awihle, it starts to make sense. One good start, IMHO, is the
very old Installation and Getting Started Guide.

http://www.tldp.org/LDP/gs/node1.html

Though the installation section is very dated, the getting started part has some nice things to help the beginner get used to the shell.

Start at section 3, Linux Tutorial. (For example, some of the installation sections are for distributions that no longer exist, such as Caldera.)
Reply With Quote
  #10  
Old 14th February 2010, 08:42 PM
tommycomeau Offline
Registered User
 
Join Date: Feb 2010
Posts: 4
linuxfedorafirefox
thanks again

I'm going through the introductory tutorial now. directories and folders, relative vs absolute path, changing directories..

I have a long way to go, but we have to start somewhere!
Reply With Quote
Reply

Tags
denied, id5initdefault, permission, root

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
full hd, cant delete files, root permission denied / operation not permitted cuban_cigar Using Fedora 3 9th May 2009 02:45 PM
Permission Denied T3256 Using Fedora 24 22nd September 2008 03:49 AM
permission denied even in root Motile Installation and Live Media 6 30th January 2008 08:27 PM
chcon: permission denied as root and 1,001 other context conundrums Pinchie Using Fedora 8 14th December 2005 06:25 AM
MV: Permission denied.....cannot create directory. As root? Pinchie Using Fedora 0 30th November 2005 03:48 AM


Current GMT-time: 13:01 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat