LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 11:35 AM   #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, 11:48 AM   #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, 12: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, 02:39 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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, 09: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, 10: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, 01:16 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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, 08: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, 01:47 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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