LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 08-03-2009, 11:54 PM   #1
joyjjs
LQ Newbie
 
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
how can i run a java program with root privilages from a non-root account?


how can i change the linux file permission using no-root account?
 
Old 08-04-2009, 12:14 AM   #2
foodown
Member
 
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 607

Rep: Reputation: 218Reputation: 218Reputation: 218
You can set the "sticky" bit on the permissions of a file to make it always execute with the permissions of the owning UID.

So, if your java file was owned by root, and the sticky bit was set, every time it was executed, by any user, it would run as root.

If the file name was /bin/example, you could set this with . . .
Code:
chmod 4755 /bin/example
(as root)
 
  


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
Run VLC using root account Ashish Sood Linux - General 41 12-20-2013 05:22 AM
Root Privilages Talon21 Debian 3 07-25-2008 10:33 AM
root privilages cheech66 Linux - Newbie 7 05-31-2004 08:09 AM
Root User Privilages Jonlinuxuser Linux - Software 1 05-17-2004 06:58 PM
Firefox cannot run (start and exit within 2 secs) with root account davidas Linux - Software 5 04-08-2004 01:36 AM


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