LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-14-2004, 08:27 PM   #1
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Rep: Reputation: 30
privileges problems


i just installed slackware with a full install, im using gnome 2.6 and i'm having a few issues that i think concern user privileges:

1. when im logged in as root, i cant use screensavers it says that the screen saver daemon did not start up properly and that it is probably because i'm logged in as root and that the screen saver couldnt access my root server because access control is turned on. this presents a problem because sometimes i might be in the middle of doing something important as root and dont wanna log out but i have to go to the bathroom or something and then somebody could walk right in and mess with my system.

2. i have been told that it's not a good idea to just use the root account for general use, so i want to make an all purpose account for myself that would have enough privileges to do everything except the things that could really screw up my system. i dont know how to do this, when i make an account for myself, i have problems running certain programs that i can run as root, like mozilla and galeon. Basically: how do I assign privileges to an account and what privileges do you think i should allow/deny my account?
 
Old 10-14-2004, 08:37 PM   #2
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
1. There is no reason to be doing everything as root.

2. adduser
It will walk you through creating a user account. User accounts are to do things with user permissions.
The root account is for administrative work. You su to it
su -
Enter root password.
 
Old 10-14-2004, 08:55 PM   #3
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Also there are default groups created to access certain devices without putting them in "danger". IE: audio, cdrom, disk
Adding that user you create to those groups will be better than chmoding the devices. To do that, just open /etc/group and add the user at the end of the line. If there are two users separate them with a ,
 
Old 10-14-2004, 09:57 PM   #4
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Original Poster
Rep: Reputation: 30
i know, but when im a regular user, i cant run mozilla, galeon, and several other programs that run fine when i run them as root. how can i make them work as a regular user? i dont have write permissions for things like bookmarks if i use su and i dont want to do everything as root
 
Old 10-14-2004, 10:00 PM   #5
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Try upgrading mozilla or using firefox, there was a known problem with the default mozilla shipped in Slack 10 that it couldn't be used as a normal user and browsers that depends on it were affected too.
You can search this forum (this has been talked a lot) to see if there was a solution to this, as far as I remember, there isn't.
 
Old 10-14-2004, 10:25 PM   #6
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Original Poster
Rep: Reputation: 30
oh, thats the problem then i guess. i still wanna find out about that screen saver issue as root because sometimes its just easier to login as root and do administrative stuff and if i need to lock the screen in the middle of some work, i'd like to be able to do it.
 
Old 10-14-2004, 10:28 PM   #7
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
Install vlock It will lock the terminal.
 
Old 10-14-2004, 10:31 PM   #8
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Original Poster
Rep: Reputation: 30
ok, that sounds good... one more question: what groups should i put my general account in? i put it in wheel and gave wheel sudoers access, but is that all i need or do i have to have it in the floppy and cdrom and mysql groups in order to use those things without sudo?
 
Old 10-15-2004, 01:02 AM   #9
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
To access floppy and cdrom add it to the disk group.
About mysql, well, the best and normal way is to create a database for your user.
 
Old 10-15-2004, 01:33 AM   #10
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
Quote:
Originally posted by slinky2004
ok, that sounds good... one more question: what groups should i put my general account in? i put it in wheel and gave wheel sudoers access, but is that all i need or do i have to have it in the floppy and cdrom and mysql groups in order to use those things without sudo?
Look in /etc/group to get an idea what groups you need to be in. Some distros have like an audio group and some don't.
 
Old 10-15-2004, 04:01 PM   #11
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Original Poster
Rep: Reputation: 30
so you assign priveliges using groups? is it possible to make your own group and assign priveliges to it another way?
 
Old 10-15-2004, 06:36 PM   #12
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
addgroup command
man addgroup
Then add users to group with the usermod command.


You can then change the group ownership of files and directories. But I wouldn't go changing group ownership of system files and directories. You could mess things up.
 
Old 10-15-2004, 06:42 PM   #13
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Original Poster
Rep: Reputation: 30
ok, thanx
 
  


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
Root privileges for user ar1 Linux - Security 2 01-07-2005 09:33 PM
How do I get ALL privileges? Fe98 Linux - Newbie 6 09-30-2003 04:02 PM
privileges for kppp allelopath Linux - General 2 09-10-2003 07:41 PM
Lost privileges for MySQL !!! davidgordon Linux - Newbie 2 01-09-2003 07:00 PM
user privileges rieta Linux - Newbie 9 08-29-2002 11:48 AM

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

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