LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-08-2014, 01:24 PM   #1
glsmaxx
LQ Newbie
 
Registered: Mar 2014
Posts: 12

Rep: Reputation: Disabled
CentOS Problems(s)


I am taking a course through edX and thought I was ready for it...Not.

I use Manjaro and have become fair at the command line. Well the "class" wants us to use Ubuntu, OpenSUSE, and CentOS to supposedly get a well rounded view of all Linux. The command line, much to my surprise, is different in all three. Four counting Manjaro.

For instance. I have a couple of themes I custom made for myself and wanted to put them in the /user/share/themes dir so I couild at least make it look like home. I am used to just typing "sudo filemanager" and being able to do what I want. Somoe other file managers let you declare root in the GUI file manager. I can't open Dolphin in root to save myself. I can't get sudo to work.

I have been able to get myself su permissions by typing su in the command line the my PW. Trying to use sudo just gets my an error about my username is not in the "sudoers" file...OK>?

Anyone have a direction to point me in?
 
Old 08-08-2014, 01:34 PM   #2
wizard10000
LQ Newbie
 
Registered: Jun 2014
Location: midwestern us
Distribution: debian unstable
Posts: 17

Rep: Reputation: Disabled
If you're using dolphin I'm going to assume you're using KDE

To open dolphin as root at the top of the filesystem, do this -

Code:
kdesu dolphin /
Word to the wise, it's generally not a good idea to use sudo to open graphical applications; you'd use gksudo or kdesudo. sudo and gksudo/kdesudo set different environments, so use sudo for the terminal stuff and gksudo/kdesudo for the graphical stuff. In this instance you'd use kdesu; since your user account isn't in sudoers sudo isn't available to you.

Hope this helps -

Last edited by wizard10000; 08-08-2014 at 01:36 PM.
 
Old 08-09-2014, 08:46 AM   #3
glsmaxx
LQ Newbie
 
Registered: Mar 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
How do I get my user account in sudoers?
 
Old 08-09-2014, 11:32 AM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Use "visudo" to edit the /etc/sudoers file and add it. You can read "man sudoers" for documentation on the syntax, which is a bit complex.
 
Old 08-10-2014, 10:14 AM   #5
glsmaxx
LQ Newbie
 
Registered: Mar 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by btmiller View Post
Use "visudo" to edit the /etc/sudoers file and add it. You can read "man sudoers" for documentation on the syntax, which is a bit complex.

I have looked at the "man" page for more information but I still haven't been able to figure out just what to do. The class wants us to use OpenSUSE, Ubuntu, and CentOS. The kicker to that is the fact that with the older hardware on this machine I can't run anything but CentOS.. Ubuntu and OpenSuse will not work without extreme screen issues. I have tried both free and non-free drivers to no avail. The CentOS sytem works pretty well on a laptop I installed it to. I just have been running around in circles with the sudo thing. Was told I could edit the sudoers file with my "username ALL=ALL" and I would be on the sudoers list. I must be doing something very wrong as it changed nothing. I am pretty sure it isn't because of a lack of knowledge running vi but could be as I had never ran vi before just other various text editors. ie gedit, mousepad, nano etc.

Virtualization is out. I have tried VirtualBox and VirtualMachine. The virtualization just isn't an option. I am running a single core processor and 2g of RAM and while I have enough computer to run pretty much anything I just do not have enough to run Virtual machines. They are slow to say the very very least. I went ahead and tried virtualization anyway and not only is it so slow I can't work with it. The graphics issues are there in either virtual or regular environments.

Trust me I am not one who likes to make myself look so...well...Dumb. I am just floundering here. Had I known Arch derivatives would not work like most other OSs I wouldn't have started out my journey with said OS!

Is there a way you could/can help me out?
 
Old 08-10-2014, 10:38 AM   #6
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 774
Blog Entries: 6

Rep: Reputation: 75
you can use export editor to use nano with that, if you not familiar with vi

Code:
# export EDITOR=$(type -P nano);visudo
 
Old 08-10-2014, 11:28 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,929

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
By default Ubuntu disables root. Therefore to use root privileges you use sudo. With non Ubuntu based distributions you can actually log on as root via the su command. The correct syntax is:

Username ALL=(ALL) ALL


http://wiki.centos.org/TipsAndTricks/BecomingRoot
 
Old 08-10-2014, 04:56 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,817

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
as you are finding out
CentOS normally dose NOT use "sudo"
It is NOT set up and it is not configured by default

if you want to use it and understand the possible security implications you can configure it .

normally "su" and "su -" are used
( the blank space and a dash make a VERY big difference)

OpenSUSE is an "odd ball"
depending on HOW you install it it can have a DIFFERENT password for the root account than the first non root user

this is a install option
to make a real root user or use sudo like ubuntu

i set it up with a separate root account and password and use "su" and su -"
 
Old 08-11-2014, 08:41 AM   #9
wizard10000
LQ Newbie
 
Registered: Jun 2014
Location: midwestern us
Distribution: debian unstable
Posts: 17

Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
...OpenSUSE is an "odd ball"
depending on HOW you install it it can have a DIFFERENT password for the root account than the first non root user
Debian is the same way. If you give a root password during install you get to use su; but if you give root a blank password the first account created goes into sudoers.
 
Old 08-15-2014, 10:41 AM   #10
glsmaxx
LQ Newbie
 
Registered: Mar 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
Ok guys. You have been a great help. I just keep plugging away. I learn something newe every day. I had no idea the different OSs were so different
 
Old 08-15-2014, 10:54 AM   #11
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Quote:
Originally Posted by glsmaxx View Post
I had no idea the different OSs were so different
They're really not, they just have different defaults. You can use su on Ubuntu and you can use sudo on everything else, there's nothing stopping you from configuring things how you want.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Timezone problems CentOS 6 lqmp Linux - Newbie 1 12-22-2013 03:40 AM
BIND Centos Problems aelgate3 Linux - Newbie 1 04-27-2013 06:08 PM
Problems with xen in centOS 5.6 dspjm Linux - Virtualization and Cloud 1 08-11-2011 11:57 AM
CentOS problems phantom_cyph Linux - Distributions 14 09-25-2007 08:14 PM
CENTOS 4.3 - 2 problems jaymc Linux - Newbie 1 05-05-2006 08:13 AM


All times are GMT -5. The time now is 11:05 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration