LinuxQuestions.org
Register a domain and help support LQ
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 10-03-2004, 12:35 PM   #1
ch424
LQ Newbie
 
Registered: Oct 2004
Location: Oxford, UK
Distribution: Slackware 10.0 (+ SuSE 9.1 in progress)
Posts: 6

Rep: Reputation: 0
User permissions - Slackware


I've been using Slackware + KDE for two days now, just setting up graphics card (4 hours), second mouse (5 hours), sound (10 mins), and I think I'm finally ready to use it.

I've done what most advice says, and created a non-root account for me, but I keep on getting stuck with things, like it won't play a cd as me, but will as root. Is there some sort of script I can download and run as root to make me a windows-xp style admin: I can install stuff/change configs, but can't do unneeded things like get into other peoles home folder?

I read
threadid=5919 (can't post full url, cos I'm a noob: sorry, seems a bit harsh)
but that seems a bit long-winded and doesn't say how to fix the cd playing options.

Also, would it be OK to just use root anyway, as I am the only user of my computer, and it's not networked?
Thanks for any help,

ch424
 
Old 10-03-2004, 12:48 PM   #2
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
it should be ok, as long as its not networked,... but its a bad habit

and you diffidently wouldn't want the win admin stuff, if you can install program, that means you can delete programs, which means you could delete the entire system (or a cracker could if he got into your system while you were root, doing things no root user should ever do (just in case))

anyways, RSBAC is a system that do things like limit root user(s) , but its diffidently not for newbs .. fairly hard to use, but it will work
 
Old 10-03-2004, 01:21 PM   #3
ch424
LQ Newbie
 
Registered: Oct 2004
Location: Oxford, UK
Distribution: Slackware 10.0 (+ SuSE 9.1 in progress)
Posts: 6

Original Poster
Rep: Reputation: 0
OK, thanks!

Anything re the CD not working though?

ch424
 
Old 10-03-2004, 03:39 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Don't listen to SciVro when he says running as root
is ok :)

All you need to do is setting up groups for sound
and cd-rom access, chgrp the respective devices
(e.g. chgrp cdrom /dev/hdc , chgrp sound /dev/dsp*,
...) and make yourself a member of those groups.



Cheers,
Tink
 
Old 10-04-2004, 10:36 AM   #5
ch424
LQ Newbie
 
Registered: Oct 2004
Location: Oxford, UK
Distribution: Slackware 10.0 (+ SuSE 9.1 in progress)
Posts: 6

Original Poster
Rep: Reputation: 0
OK ...[confused smilie]

Thanks for that, well the concept at least, -- I'll google "chgrp" and get a full instruction booklet


ch424
 
Old 10-04-2004, 11:01 AM   #6
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
man chgrp

will also give you the instruction pages on your terminal
 
Old 10-04-2004, 02:16 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally posted by ch424
OK ...[confused smilie]

Thanks for that, well the concept at least, -- I'll google "chgrp" and get a full instruction booklet :)


ch424
OK, a bit more eloquent :)

Create groups for specific purposes:
groupadd cdrom
groupadd audio
(if there's a message saying they already exist don't worry,
no harm done).

Add your user to those groups:
usermod -g user -G cdrom,audio <your username>

Make those groups owners of the relevant devices:
chgrp cdrom /dev/<hdX,scdX>
where the thing in <> is the actual physical cdrom device

chgrp audio /dev/dsp* /dev/mix*
(if you use ALSA those are slightly different, I think it
adds a /dev/snd directory ... )

Next time you login you'll be all sweet :)


Cheers,
Tink
 
Old 10-05-2004, 09:06 AM   #8
ch424
LQ Newbie
 
Registered: Oct 2004
Location: Oxford, UK
Distribution: Slackware 10.0 (+ SuSE 9.1 in progress)
Posts: 6

Original Poster
Rep: Reputation: 0
Ah great, thanks alot -- I wan't being sarcastic (I really was gonna google)!

BTW, does
man <program name>
work for anything? I guessed "amixer -h" for help on that, but I don't know if that works with other stuff?

Thanks again,

ch424
 
Old 10-05-2004, 02:47 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
man will work for MOST applications/programs ... KDE is
one of the sad exceptions.


Some apps will respond to -h or --help ... in general
you'll find though that the man pages are somewhat
more informative :)


Cheers,
Tink
 
  


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
user permissions bountyhunter Linux - Newbie 3 10-17-2005 10:04 PM
user permissions mark_alfred Debian 7 09-10-2005 09:18 PM
user permissions Hmmyah Linux - Newbie 4 12-11-2003 09:03 PM
user permissions... roofy Linux - Software 6 05-09-2003 11:43 PM
user permissions newpenguin Linux - General 7 11-07-2002 02:39 PM


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