LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
LinkBack Search this Thread
Old 01-17-2007, 02:17 AM   #1
lbdgwgt
Member
 
Registered: Aug 2006
Distribution: Open Suse 10.1, Ubuntu (Feisty Fawn)
Posts: 87

Rep: Reputation: 15
user application execute commands with root privileges


Hi all,

I am developing a small linux terminal. It is built from scratch and not based on any linux distribution. It has an autologin feature to directly login as a normal user from boot and run a GUI java application.

It works well until now, but now we want to add features which are associated with commands with root privileges. for example to change ip address of the terminal, to mount/unmount usb disk attached on it. I use busybox for the basic system application.

Any hints how to do this? since "sudo" command is not available in busybox package, and even tough if there is one, how to bypass prompting asking for a root password.

Thanks for any hint

Last edited by lbdgwgt; 01-17-2007 at 02:22 AM.
 
Old 01-17-2007, 05:41 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,534
Blog Entries: 51

Rep: Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603
how to bypass prompting asking for a root password
'man sudo', look for "NOPASSWD"?
 
Old 01-17-2007, 07:51 AM   #3
lbdgwgt
Member
 
Registered: Aug 2006
Distribution: Open Suse 10.1, Ubuntu (Feisty Fawn)
Posts: 87

Original Poster
Rep: Reputation: 15
hi,

installed the sudo binary, setup the /etc/sudoers on my terminal, problem solved.
thanks for the hint.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to execute commands? How to view or check my root privileges? kensim00 Linux - Newbie 4 01-07-2007 11:19 PM
How to give user always root privileges? SimeonV Suse/Novell 18 06-23-2005 11:02 AM
Root privileges for user ar1 Linux - Security 2 01-07-2005 09:33 PM
User with root privileges ShakyJake Linux - Newbie 2 06-18-2004 12:12 PM
Giving a User Root Privileges lawrencegoodman Linux - Newbie 4 12-23-2003 04:41 PM


All times are GMT -5. The time now is 04:18 AM.

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