LinuxQuestions.org
Help answer threads with 0 replies.
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 04-16-2005, 05:32 AM   #1
PeteWieland
LQ Newbie
 
Registered: Mar 2005
Location: North Wales UK
Distribution: Debian Squeeze
Posts: 15

Rep: Reputation: 0
Setting user permissions


I have just spent the past week or so setting up my Slackware 10 system, and everything was fine, but I have been logging in as 'root'. I read that this is a bad thing to do, so I created a new user, made this user a member of root, and logged in. Now I can't do a lot of the things I had set up. I have a shell script that mounts my Windows PC that now tells me that only root can mount a device, and my printer settings are all screwed up, but I don't have the permissions to change them.

How do I make this user security equvalent to root? If ou can't then how how the hell can you use the system without logging in as root?

Thanks

Pete
 
Old 04-16-2005, 07:26 AM   #2
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,511

Rep: Reputation: 58
Root is allowed to do everything on your system! If you are an unexperienced user, there is a lot you could mess-up by being root. To create a user account and granting him all root permissions doesn't make sense at all. You simply give root another name.

If you need to do system administration, you can alway get temporary root permissions to do the job and then become a normal user thereafter. This is done on command-line with 'su' (switch user). You will be asked for the root password and are now able to work as root on this particular console until you logout. Another command allows to perform single tasks as root: 'sudo'. In KDE, there is a similar command to 'su', called 'kdesu', which enables you to open graphical applications with root permissions.
 
Old 04-16-2005, 07:35 AM   #3
uzairkhan
Member
 
Registered: Apr 2005
Location: Islamabad, Pakistan
Distribution: Mandrake 10.0 & Window XP professional
Posts: 32

Rep: Reputation: 15
Smile edit /etc/fstab file

hi,
by default only root can mount drives, but that can easily be modified to allow other users to mount drives etc.

go to /etc/fstab file and open it using u'r favorite editor (as root or do the su) for editing and add the following line to it

/dev/hd(some letter and number) /mnt/dosdrive vfat noauto,user,rw 0 0


This would allow the other users to mount the drive as well.
by the way
hd(some letter and number) -> your partition id that you want to map like hda1 , hda2 ..etc



for more information plz refer to



ps. as a user other than root , use the command

mount /mnt/hd(some letter and number) to mount the drive



[URL=http://linux-newbie.sunsite.dk/exports/lnag.pdf]
hope this helps.

Last edited by uzairkhan; 04-16-2005 at 07:38 AM.
 
  


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
Problems setting user permissions kyro_02 Linux - Newbie 4 07-08-2005 12:27 PM
Setting User Permissions macgyver007 Linux - Newbie 3 04-12-2005 11:21 AM
Setting user network permissions beforemath Linux - Networking 2 02-28-2005 04:53 PM
Setting default permissions for user loadedmind Slackware 3 11-05-2003 04:24 PM
::Setting user permissions:: ::Newbie question:: XxAndyxX Linux - Software 3 03-20-2003 02:55 AM


All times are GMT -5. The time now is 09:13 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration