LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 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: 611

Rep: Reputation: 221Reputation: 221Reputation: 221
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



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
Run VLC using root account Ashish Sood Linux - General 48 10-22-2016 04:06 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

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

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