LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-17-2013, 01:07 AM   #1
Netnovice
Member
 
Registered: Feb 2013
Posts: 94

Rep: Reputation: Disabled
Newbie - New uses can't do squat. Stuck with using root. ???!


OK. Be kind to the new guy! I am learning.

Al right. I've been doing everything as root because.. I haven't had much choice. I have created a new user. The KDE user manager in 14 helps but... it's not helping. The user has no permission to do anything except run apps. I have thrown every possible group I can at said user. N change.

I can't do anything. I can't create a new directory or run chmod, or view videos or anything!

Clearly I am missing something obvious here (though what counts as obvious in Linux is rather distinct from any other OS.)

Can someone point me to how I give a user real permission or what I gotta do here?

Oh, I've tried sudo but my user isn't in the sudousers list and that's killing me too but one thing at a time.

Thanks. I'll get there.
 
Old 02-17-2013, 01:30 AM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
First
Linux is NOT Microsoft Windows
stop thinking like it is
an analogy
Microsoft is the USA "English " system of measure
-- foot, yard, mile , cup, quart

Linux is like "Metric"
CM,M,Km, cc, L


you do things very differently


second
Slackware is NOT designed for the "new to linux" user in mind

it is designed for use by experts
or
new users who want a VERY HARD challenge

think of it this way
yes a 5th grader ? Might? be able to finish and pass a 3'd/ 4'th year collage calculus course
-- but it will be VERY difficult

I would download "Linux Mint 14
http://www.linuxmint.com/

it has been specifically designed with the "new to linux" user in mind

and READ and reread the documentation
have a good read through the mint forums
http://forums.linuxmint.com/


basically you have to relearn how to do things
" Linux is NOT MS Windows "
 
2 members found this post helpful.
Old 02-17-2013, 01:55 AM   #3
Netnovice
Member
 
Registered: Feb 2013
Posts: 94

Original Poster
Rep: Reputation: Disabled
Whoa! Hang on! I said be kind to the newbie. Up to now people have been very helpful.

I am aware of the differences in Linux and Windows. Now, I am not a programmer but I have spent 15 years in the IT industry and I have used a MASS of OS's. I'm not a C programmer and I am more a born teacher than I am a techie but I am NOT dumb!

I am also pleased with my progress so far. Slackware 14 is somewhat distinct from previous versions. It gives newbies like me a starter where it did not before. Result: I am making progress and I am happy so far. This is just the next step.

If I really can't handle slackware I'll shift but telling me, "Look Kid, yer not up to it, skip out and plug with your jellymolds" is not a help. I have chosen slackware with my eyes open. I have stated elsewhere why I chose slackware.

So, could someone help answer the question? Thank you.
 
Old 02-17-2013, 02:08 AM   #4
D1ver
Member
 
Registered: Jan 2010
Distribution: Slackware 13.37
Posts: 598
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Firstly the correct way to create a new user is to open a terminal, and as root run the 'adduser' command.

Follow the prompts, you can just hit enter for most options, but be sure to hit the 'up arrow' when asked which UNIX groups the new user should belong too. After that you should be able to login as the new user and then 'startx'.


Regarding sudo, as root run the command 'visudo' and find the line
Code:
root ALL=(ALL) ALL
and add an identical line below it with your username instead of 'root'.
 
Old 02-17-2013, 03:14 AM   #5
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
I'd just add to what D1ver stated that usually you do not need sudo at all with Slackware.

Once you will have your problem solved (hopefully very soon), do everything as a regular used and when you need the root permissions or ownership to fulfill some task or run some program, if under X just fire up a terminal and type su (or su - to get root's environment). Well, I guess you already know that, so that's just a reminder.
 
Old 02-17-2013, 03:34 AM   #6
Netnovice
Member
 
Registered: Feb 2013
Posts: 94

Original Poster
Rep: Reputation: Disabled
Hi D1ver and Didier,

Thanks for your help. This is more like it.

I should have mentioned earlier… I have used the adduser command and successfully added my new user. I have also successfully added groups to the user. I found the KDE user tool *after* using the CLI and was able to check. (I promise, I only post here if I really, really can't find the answer on from online documentation first! I swear!) The KDE tool confirmed the users existence and groups. Well, I have added the kitchen sink to the user and… nothing. I can run apps and view external devices and that's it. I can't write to a flash drive. I can’t even play media files. (There's no permission warning on the last one, it just doesn't happen.) Trying to run ANY CLU command outside of 'ls' returns a permissions error. Everything is fine as root but I can't stay there. I am missing something. I can log on as the user but no matter his group membership - I can’t do anything.

I have tried using visudo (I swear - I do check online first!!) and you know? It won’t let me edit! Even as root! I try typing anything - nothing moves. I can’t insert, delete or change. But if I generate a new vim file, I can!! This is when logged on as root BTW. Yes, I have checked that I am in edit mode.

It's like the security on slackware 14 is totally locked down and I can't shift it using normal means. Is there something extra in version 14?

It's something silly I'm missing. But my user exists and is a member of every damn group imaginable!
Nuffin. There's a 0 needing to be set 1 somewhere, I can smell it!

Thanks again.

---------- Post added 02-17-13 at 04:34 PM ----------

Hi D1ver and Didier,

Thanks for your help. This is more like it.

I should have mentioned earlier… I have used the adduser command and successfully added my new user. I have also successfully added groups to the user. I found the KDE user tool *after* using the CLI and was able to check. (I promise, I only post here if I really, really can't find the answer on from online documentation first! I swear!) The KDE tool confirmed the users existence and groups. Well, I have added the kitchen sink to the user and… nothing. I can run apps and view external devices and that's it. I can't write to a flash drive. I can’t even play media files. (There's no permission warning on the last one, it just doesn't happen.) Trying to run ANY CLU command outside of 'ls' returns a permissions error. Everything is fine as root but I can't stay there. I am missing something. I can log on as the user but no matter his group membership - I can’t do anything.

I have tried using visudo (I swear - I do check online first!!) and you know? It won’t let me edit! Even as root! I try typing anything - nothing moves. I can’t insert, delete or change. But if I generate a new vim file, I can!! This is when logged on as root BTW. Yes, I have checked that I am in edit mode.

It's like the security on slackware 14 is totally locked down and I can't shift it using normal means. Is there something extra in version 14?

It's something silly I'm missing. But my user exists and is a member of every damn group imaginable!
Nuffin. There's a 0 needing to be set 1 somewhere, I can smell it!

Thanks again.
 
Old 02-17-2013, 03:36 AM   #7
Netnovice
Member
 
Registered: Feb 2013
Posts: 94

Original Poster
Rep: Reputation: Disabled
Er, sorry about the double post. I have no idea how that happened. But I am dead tired.
I'm pumping twelve hour days six days a week. Can't wait for my new contract and some kind of life.
 
Old 02-17-2013, 03:41 AM   #8
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,504

Rep: Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461
That sounds suspiciously like a directory permissions error somewhere. I've seen it happen before when a malformed package with bad permissions is installed. Any chance that the top level directory perms got changed somehow?

Looking at ls -lad / you should see execute access for everyone. Of course, if that's the issue perhaps other directories have bad permissions as well.

Just in case, you might try reinstalling a few packages as root. That'll clean up the perms on any directories they contain. Head on over to the A series and give this a try:

upgradepkg --reinstall coreutils*txz

That'll at least fix up the top level perms, /bin, and /usr/bin/.
 
Old 02-17-2013, 07:14 AM   #9
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781

Rep: Reputation: 98
Quote:
Originally Posted by John VV View Post
First
Linux is NOT Microsoft Windows
stop thinking like it is
an analogy
Microsoft is the USA "English " system of measure
-- foot, yard, mile , cup, quart

Linux is like "Metric"
CM,M,Km, cc, L


you do things very differently


second
Slackware is NOT designed for the "new to linux" user in mind

it is designed for use by experts
or
new users who want a VERY HARD challenge

think of it this way
yes a 5th grader ? Might? be able to finish and pass a 3'd/ 4'th year collage calculus course
-- but it will be VERY difficult

I would download "Linux Mint 14
http://www.linuxmint.com/

it has been specifically designed with the "new to linux" user in mind

and READ and reread the documentation
have a good read through the mint forums
http://forums.linuxmint.com/


basically you have to relearn how to do things
" Linux is NOT MS Windows "
What a K**b

The guy asks for help and this is how you treat him.

Now I'm not afraid to criticise the things that I see in Slack that could maybe be improved upon, but I would never put of anyone trying to learn.

And I 3rd D1ver and Didier. But Pat's advice is likely the way to go

Good luck
 
Old 02-17-2013, 08:04 AM   #10
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by John VV View Post
second
Slackware is NOT designed for the "new to linux" user in mind

it is designed for use by experts
or
new users who want a VERY HARD challenge

think of it this way
yes a 5th grader ? Might? be able to finish and pass a 3'd/ 4'th year collage calculus course
-- but it will be VERY difficult
There are a sort of men whose visages
Do cream and mantle like a standing pond,
And do a willful stillness entertain
With purpose to be dressed in an opinion
Of wisdom, gravity, profound conceit,
As who should say, “I am Sir Oracle,
And when I ope my lips, let no dog bark!”


-- William Shakespeare, The Merchant Of Venice
 
Old 02-17-2013, 08:19 AM   #11
Netnovice
Member
 
Registered: Feb 2013
Posts: 94

Original Poster
Rep: Reputation: Disabled
Mr volerdi, methinks you have it!!

‘cause I just re-installed slackware 14 from scratch, went through the same procedure I tried before and now everything works! How things got messed up I do not know but I am in ‘New OS experiment mode’ so anything is possible. But I take the destructive approach to learning an OS. “Get yourself a nice, clean PC (in the old country it would be second hand but no can do here in Indonesia,) keep the install disks to hand, then read, play and experiment. And be ready to re-install from scratch at least once a week until you’re proficient.”

So it will be a while before the netbook becomes a general purpose device. ;-)

But thank you. That is information I will log for the future. And I have learnt a few more commands today almost by accident. I took some lucky guesses!

Didier, I did NOT know about su – though it makes sense now I’ve tried it. I’ve been running (slackware) Linux for around twelve days now I think so there is MUCH I do not know!! I have used the su temp login to happy effect just now. Perfect!

Now I can move on up the learning curve again.
Thanks to everyone.

And I swear, I only post questions when online documentation does not answer my query! Honest!
 
Old 02-17-2013, 08:26 AM   #12
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Just in case you didn't know that yet: to go back to your regular user after 'su' or 'su -' just hit Ctrl-D (this command can be used to log out or close a session. It can close the terminal as well).

Last edited by Didier Spaier; 02-17-2013 at 09:28 AM. Reason: I forgot know... now it's there ;)
 
1 members found this post helpful.
Old 02-17-2013, 09:00 AM   #13
lkraemer
Member
 
Registered: Aug 2008
Posts: 113

Rep: Reputation: 10
Netnovice,
If you are wanting to be able to use the command "sudo" versus using "su -", this URL has a method that worked well for me:

http://gnu-linux-slackware.blogspot....oers-file.html


Users can execute commands that are usually restricted to the root account using sudo program. The sudo configuration file
location is /etc/sudoers.

Open /etc/sudoers file with your favorite text editor as root, then remove comment character, #, in front of line
"%wheel ALL=(ALL) ALL" and save.

# visudo

or

# nano /etc/sudoers

...
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
...

Change above line as in below and save file.
...
# Uncomment to allow people in group wheel to run all commands %wheel ALL=(ALL) ALL
...

You need to add your user name to group wheel also.

# gpasswd -a user wheel

(Replace user with your user name)

Now you can execute some privileged commands using sudo as user without becoming root with su. For example it is possible to edit system file inittab as user executing below command.

$ sudo nano /etc/inittab



The "groups" that you will likely need to belong to (depending on your system usage) are listed below:

users lp wheel floppy dialout audio video cdrom plugdev power netdev scanner vboxusers


You can find the groups that are currently assigned, by opening a Terminal and using the following command:

groups


Another thing I'd like to see if a listing of your previously executed commands in your Terminals history. Will you capture
those in a file, editing to remove the typical commands like ls -alt, but leaving the ones that may have changed your system
such as chmod, chown, etc.

To capture the history file, then edit the contents, do the following in a Terminal:

history > myhist.txt
nano myhist.txt

Then post the file, or reduced contents so we can see what has been executed.


Did you VERIFY the hash of the Slackware ISO (CDR) after downloading to make sure it's hash was correct? If not, that could be
another source of problems.


Don't give up. Keep using Slackware 14, just disregard those postings that contain no valid information pertaining to your request.


Good Luck.

Larry
 
Old 02-17-2013, 09:10 AM   #14
Netnovice
Member
 
Registered: Feb 2013
Posts: 94

Original Poster
Rep: Reputation: Disabled
Talking

Quote:
Originally Posted by lkraemer View Post
Netnovice,
Don't give up. Keep using Slackware 14, just disregard those postings that contain no valid information pertaining to your request.


Good Luck.

Larry
I won't give up! I've wrestled with pigs before!!! I mean, I take pride in the fact I could make Windows 3.0 USABLE! (Actually, I LIKED 3.0. Technically it stank but Windows 3.1 was sooo boring even while adding improvements!) Trust me, if you could see what I had to put up with in the old country with an ancient VB bloatware program that used (uses!) a FLAT FILE DB system which we were FORCED to crowbar to run with Oracle (when EVERYONE said it would take longer than rewriting the code from scratch - and we were proven right) and muggins was the guy who had to write the installation and data set up manual for the flat file system before he left... I've down low level. At least 14 gives me a foothold. That's all I need. Once I can *start* on an OS than I can play and break, play and break until I get it! I'm not afraid to reinstall!

Oh, and I am called Larry! I swear! Glad to meet me!
 
Old 02-17-2013, 09:13 AM   #15
Netnovice
Member
 
Registered: Feb 2013
Posts: 94

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
Just in case you didn't that yet: to go back to your regular user after 'su' or 'su -' just hit Ctrl-D (this command can be used to log out or close a session. It can close the terminal as well).
All cool info here. Thanks guys!
Though I'm so used to dropping to DOS from Windows 3.x (don't ask!) that I tend not to use the console but drop straight to the CLI and 'exit.' (That's actuallu where Slackware scores. I get to do that.)

But all info is good info! I'll log that too!

And Larry, your info is excellent. I will investigate tomorrow.
 
  


Reply



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] root displays at 1600x1200. Non-root stuck at 1152x864 (RH 2.6.18-128.el5) CBIHP Linux - Desktop 1 08-18-2010 06:46 PM
Ubuntu stuck in root mode, help! koppes Linux - General 7 12-18-2009 10:21 AM
MS migrant (newbie stuck) JimboJuggs Mandriva 7 04-01-2005 09:55 AM
Just a Newbie stuck ramzi Linux - Newbie 7 08-21-2003 01:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:18 AM.

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
Open Source Consulting | Domain Registration