Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 08-03-2009, 11:54 PM   #1
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
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 611

Rep: Reputation: 219Reputation: 219Reputation: 219
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 . . .
chmod 4755 /bin/example
(as root)


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
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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:52 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration