LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 03-14-2004, 10:31 AM   #1
WARHEAD
LQ Newbie
 
Registered: Feb 2004
Location: Germany
Distribution: Fedora Core 2
Posts: 16

Rep: Reputation: 0
userpermissions


hi!

i have some problems with the permissions of my user.
i heard using root is not a good idea so i created a user with the standart permissions using kuser. but this user isnt allowed to do a lot.. he cant mount cds or edit .ini files in usr/local/games and so on.. i tried to add him to the disk group but he also couldnt mount cds..
the user has the id 1001, shell /bin/bash, homedir /home/warhead, primary group: root and no other groups..

how can i allow him to acces the cddrives without editing fstab, and editing files which are not in his homedir?

thx
christian
 
Old 03-14-2004, 10:49 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Re: userpermissions

Quote:
Originally posted by WARHEAD
how can i allow him to acces the cddrives without editing fstab, and editing files which are not in his homedir?
man chmod
man chown
man chgrp

Some of the commands you will need to familarize yourself with in changing permissions.
 
Old 03-14-2004, 10:50 AM   #3
spurious
Member
 
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558

Rep: Reputation: 31
Your normal user can run the command sudo which will allow temporary superuser (root) privileges. ie. sudo mount /mnt/cdrom. However, the user will be prompted each time for root's password.

You can also use the chown and chmod commands to set the ownerships and permissions for individual files and directories (use the -R flag to recursively change permissions on directories).

If you wanted to change the file ownership from root to "thisuser", then as root do chown thisuser:thisuser filename. To make a file read, writable and executable by everyone, do chmod +rwx filename or chmod 777 filename.

Look up the Linux Cookbook in my .sig below, and read the chapter on permissions for a better explanation. For more detail, read the RUTE Linux Textbook, also in my .sig.
 
Old 03-15-2004, 09:27 AM   #4
WARHEAD
LQ Newbie
 
Registered: Feb 2004
Location: Germany
Distribution: Fedora Core 2
Posts: 16

Original Poster
Rep: Reputation: 0
thx, i will give it a try, but is there no function like in fedora or suse, that a little programm asks for the root pw and if successfully entered gives me acces to the file?

ps: dont flame at me because i tried to compare fedora/suse to slackware :P
 
Old 03-15-2004, 10:05 AM   #5
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
bookmark this.......
http://www.ss64.com/bash/
 
  


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



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

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