LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-28-2003, 11:59 AM   #1
kaega2
Member
 
Registered: Sep 2003
Location: Ontario, Canada
Distribution: Gentoo 2004.3
Posts: 195

Rep: Reputation: 30
changing to root user without command line


Hi everyone. I switched to Linux a little while ago and that's all I'm running. I forgot that sometimes my cousin likes to use my computer and download things and talk to her friends or maybe play some games. I've installed gaim and limewire and that substitutes msn and kazaa, and I just make short cuts on the desktop that open them right up. For her but the games is where the problem comes in.

I know what some people are thinking but here's what's going on. I'm using an snes9x emulator for linux, cause that's what my cousin was using the most in windows. If I run snes9x in anything but root, I can't switch to full screen, I'm not sure why. My cousin is only 11 years old and I don't want to teach her unix commands so she can open this. I would like to make a shortcut that would somehow run the program as the root user. Does anyone know a way to do this?

Thanks
 
Old 11-28-2003, 12:08 PM   #2
Whitehat
Senior Member
 
Registered: Feb 2003
Location: The Cold North
Distribution: SuSE 9.1
Posts: 1,289

Rep: Reputation: 46
make the shortcut...

then...right click the shortcut and go to properties....

on one of the tabs it will say "run a different user" and you should be able to check the box for "root". You may have to give the 11 year old the root password as it will ask for it when you run the game.

i wish i knew of a way to supply that password.....
 
Old 11-28-2003, 12:23 PM   #3
kaega2
Member
 
Registered: Sep 2003
Location: Ontario, Canada
Distribution: Gentoo 2004.3
Posts: 195

Original Poster
Rep: Reputation: 30
Yeah, I would too actually. But you got me somewhere though. Thank you
 
Old 11-28-2003, 03:14 PM   #4
martin426
LQ Newbie
 
Registered: Nov 2003
Posts: 4

Rep: Reputation: 0
Hey Kaega2,

I am also fairly new to linux, and wanted the same ability, without supplying a pw everytime. If you run 'visudo' it will allow you to modify your 'sudoers' file, which will all you to type a command such as 'sudo mygame' and run it as whoever you want. In the user privelege section, add a line (all on one line) similar to this:

myusername mycomputername = (root) NOPASSWD:/pathtoapp1/appname1,/pathtoapp2/appname2

Then your shortcut can just be 'sudo /pathtoapp1/appname1' and will be run as root without requiring a password, as long as 'myusername' is running it.

Hope that helps..
 
  


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
changing video card memory size from root command line tallboy Linux - Hardware 6 04-04-2005 03:20 PM
root permissons to user command line chaitu_iiit Linux - Software 7 11-09-2004 06:54 AM
Changing Wallpaper from Command Line b_suny Linux - General 2 06-27-2004 05:52 AM
Changing video resolution from command line? lhouk Linux - General 4 04-15-2004 02:16 PM
Changing the Time Zone from the Command Line unclebyron Linux - Newbie 1 02-06-2004 11:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:12 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
Open Source Consulting | Domain Registration