LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 09-29-2002, 06:08 PM   #1
akshunj
Member
 
Registered: Sep 2002
Location: Atlanta, GA
Distribution: Linux Mint Gloria, Slackware 12.2
Posts: 165

Rep: Reputation: 30
Question I don't want to work as "root", but...


I've searched the forums, and perhaps this is far to basic a question...

I am up and running on the newest Slackware. In keeping with the recommendations of the available documentation, as well as the linux gurus who regularly post here, I added a regular "user" and logged in as such. That's where the fun ended. Every single command I typed gave me a response of "command or file not found" or something. Even when I switched back to "root" with the "su" command, I still could not do things like startx. I had to reboot and log back in as root to get going again. I am wondering if this has something to do with permissions or groups or something. I was almost embarrassed to ask this question since it seemed rather basic, and I feel I simply overlooked something. Thanks in advance for the help!

--Akshun J
 
Old 09-29-2002, 06:25 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Well first off, when you first install Slack, it doesn't configure X for you, so the first thing to do as root would be to configure X by typing xf86config.
Then, when your su'ing as root, usually just a simple:
Code:
{user@localhost} su
password:  root's password
{root@localhost ~}#
isn't going to give you its full path to look or execute from.

Though if you give a su - or su - root will give you root's full path and should be able to give any command without the full path to it.

You may want to look into sudo, so you can setup special permissions for your regular user's accounts so you don't have to su all the time.

Hope this helps.

Last edited by trickykid; 09-29-2002 at 06:28 PM.
 
Old 09-29-2002, 06:52 PM   #3
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
look at /rot/.bash_profile , then at /home/<user>/.bash_profile The "PATH=" is the setting wich tells bash where to look for programs. You can set this for the whole system with the file /etc/profile. If you change one of these files while in a shell, type "source .bash_profile" (or /etc/profile) to make the changes active
 
Old 09-29-2002, 09:42 PM   #4
akshunj
Member
 
Registered: Sep 2002
Location: Atlanta, GA
Distribution: Linux Mint Gloria, Slackware 12.2
Posts: 165

Original Poster
Rep: Reputation: 30
Trickykid, I have actually already installed X. Although I'm having some sound issues, I think I can sort them out. I actually posted my original message from Mozilla within Gnome. However, when I log in as a normal user , I can't do a thing. Thanks for the "su" command line clarifications, though.

Adam_boz, I will check the files you suggested. I'm not sure I follow what you want me to do with them. But, I'l check them out and post what I see.

Thanks a lot for your help, guys!!!

--Akshun J
 
Old 09-29-2002, 10:01 PM   #5
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
It sounds strange, how did you create user, at least you should be ab le to startx as a regular user, use adduser command to setup a user account, plus check the PATH env variable for a newly creatred user.
echo $PATH
 
Old 09-29-2002, 10:11 PM   #6
akshunj
Member
 
Registered: Sep 2002
Location: Atlanta, GA
Distribution: Linux Mint Gloria, Slackware 12.2
Posts: 165

Original Poster
Rep: Reputation: 30
I'll give it a whirl.... Update in 5 minutes...

--Akshun J
 
Old 09-29-2002, 10:28 PM   #7
akshunj
Member
 
Registered: Sep 2002
Location: Atlanta, GA
Distribution: Linux Mint Gloria, Slackware 12.2
Posts: 165

Original Poster
Rep: Reputation: 30
Well, the path for my "user" persona was quite a bit more limited than "root". Perhaps I'm not asking the correct question.

How can I add a user that is able to function on basic level within Linux. Is adding this user to a particular group the answer? Or perhaps changing $PATH variables (which I do not know how to edit at this point)? I was playing around with Kuser in KDE, and I added my "user" to the "adm" group, but that did not seem to help, even though the prompt referred to him by username as well as root...

--Akshun J
 
Old 09-29-2002, 10:39 PM   #8
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Well, if you want to fiddle with Kuser instead of straight forward adduser command be my guest, the $PATH can be defined in a couple of places, your best bet would be in .bash_profile file in the user home directory
PATH=$PATH:/usr/bin/:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin
export PATH
Note: I included some directories which are available to root to execute from without specifying the full path, these are /sbin, /usr/sbin, /usr/local/sbin(optional)
 
Old 09-29-2002, 11:21 PM   #9
akshunj
Member
 
Registered: Sep 2002
Location: Atlanta, GA
Distribution: Linux Mint Gloria, Slackware 12.2
Posts: 165

Original Poster
Rep: Reputation: 30
Neo77777, you rock! I have successfully navigated into KDE with my regular user persona. Now, if I can just get this sound issue nailed down, perhaps I will get some sleep tonight! Thanks to everyone...

--Akshun J
 
Old 09-29-2002, 11:24 PM   #10
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
No problem, it takes some time to get fully functional "non plug and pray" Operating System such as Slackware, the thing there another here, bits by bits and soon you realize how far you've gone.
Good luck.
Neo.
 
  


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
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 04:08 PM
[Redhat] make "admin" account same privledges as "root" Bi0haZarD Linux - Networking 20 01-12-2005 10:47 AM
Tiny Sofa 2.0 - I thought "halt", "reboot" were only root command ?? sorcerer Linux - Distributions 1 08-21-2004 03:28 PM
"<" ">" Keyboard keys on Toshiba Satellite 1005-s157 dont work RodCas Linux - Laptop and Netbook 1 05-08-2004 04:22 PM
su wont work, cant "su root" as a normal user lukeorun Linux - General 5 10-17-2002 07:25 AM


All times are GMT -5. The time now is 08:07 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