LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-29-2005, 11:19 AM   #1
longnam
Member
 
Registered: Mar 2005
Posts: 69

Rep: Reputation: 15
Gain root access to user


Hi there,

I am working on a small project, which i have to setup so that Slack is autologin to X ,the problem i have is, I can't setup autologin for root, but if i use a normal account for autologin it doesn't have superuser access to run command such as: mount ... etc. Is there away to get around this problem??

thanks in advance
 
Old 03-29-2005, 11:29 AM   #2
cavalier
Member
 
Registered: Feb 2005
Location: Denver, CO
Distribution: Slack 12, tweaked just so (though I'm also a fan of Ubuntu)
Posts: 198
Blog Entries: 1

Rep: Reputation: 30
You could set up sudo to allow that nonpriviledged user to run those commands. It's how I've got mine set up, to allow me to run things like mount, init, and the like.
 
Old 03-29-2005, 11:33 AM   #3
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,210

Rep: Reputation: 1390Reputation: 1390Reputation: 1390Reputation: 1390Reputation: 1390Reputation: 1390Reputation: 1390Reputation: 1390Reputation: 1390Reputation: 1390
yes there is a way, first, don't auto login to root, second, there is a way for a normal user to mount and umount without being root, if that is all that this whole problem is.

edit your fstab and just add noauto,ro,users to your cd/dvd and floppy devices, other filesystems such as partitions are already mounted during startup, and you only will have to make a correction if you have a fat32 partition and want a normal user to read write to it, or ntfs , and want a user to read it, (writing to ntfs is not recommended)

here is what I have in my fstab to give you an idea

Code:
/dev/hda3        swap             swap                 defaults                                     0   0
/dev/hda2        /                    reiserfs             defaults                                      1   1
/dev/hda1       /ntfs-c            ntfs                    ro,users,umask=0000                1   0
/dev/hda4       /fat32-d         vfat                     rw,users,umask=0000               0   0
/dev/dvd        /mnt/dvdrom   iso9660,udf        noauto,users,ro                         0   0
/dev/hdd        /mnt/cdrw       iso9660              noauto,users,ro                         0   0
/dev/fd0         /mnt/floppy      auto                   noauto,users,rw                        0   0
/dev/loop0     /mnt/iso           iso9660,udf        noauto,users,ro                        0   0
/dev/sda1      /mnt/cpflash     vfat                     noauto,users,ro                        0   0
devpts           /dev/pts         devpts                 gid=5,mode=620                     0   0
proc              /proc              proc                    defaults                                     0   0

Last edited by Jeebizz; 03-29-2005 at 11:34 AM.
 
Old 03-29-2005, 11:36 AM   #4
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,210

Rep: Reputation: 1390Reputation: 1390Reputation: 1390Reputation: 1390Reputation: 1390Reputation: 1390Reputation: 1390Reputation: 1390Reputation: 1390Reputation: 1390
now if i could only get fstab to always show up correctly when i post even though i try to center everything...doh, but you should get the idea
 
Old 03-29-2005, 11:39 AM   #5
longnam
Member
 
Registered: Mar 2005
Posts: 69

Original Poster
Rep: Reputation: 15
Thanks Jeebizz, I also want to know how to setup for my USB to automount when I plug it in and umount when I un-plug it ???

thanks much for any help.
 
Old 03-29-2005, 11:43 AM   #6
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,210

Rep: Reputation: 1390Reputation: 1390Reputation: 1390Reputation: 1390Reputation: 1390Reputation: 1390Reputation: 1390Reputation: 1390Reputation: 1390Reputation: 1390
hrmm, that I'm afraid I can't help you with, never worked with automount sorry
 
  


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
Can't gain new ROOT access dauphinfay Linux - General 3 07-28-2005 12:38 AM
How to gain **write-access** to windows xp files? sairam9 Linux - Newbie 3 07-14-2005 09:09 AM
How to gain access internal LAN Using OpenVPN? ltam68 Linux - Networking 2 06-23-2005 08:32 PM
Shell scripts: gain root access - how? ludeKing Programming 16 09-02-2004 10:35 PM
iptables, clients only gain access to a few domain dnla Linux - Networking 5 09-26-2003 09:12 AM

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

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