LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Setting user permissions (https://www.linuxquestions.org/questions/linux-newbie-8/setting-user-permissions-313800/)

PeteWieland 04-16-2005 04:32 AM

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

abisko00 04-16-2005 06:26 AM

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.

uzairkhan 04-16-2005 06:35 AM

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.


All times are GMT -5. The time now is 01:14 AM.