Make program only run by root


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Make program only run by root
# 8  
Old 02-13-2008
Quote:
Originally Posted by dave123
Thankyou, you must be getting fed up with me by now, sorry to be a pain
im almost there the command you gave me worked it has ensured firefox can only be run as root, however it would be nice if it asked for root password when you try to use it non root,(at the moment it just says permission denied) like when you try to run a program from the adminstration menu, im probably asking to much here
but thankyou for all your help so far it really has helped alot so far.
I explained this in the first message. Set up sudo and allow the user to run the program with:

sudo firefox

If you really want him to have the root password, okay, but this is absolutely stupid:

su -c /usr/bin/firefox
# 9  
Old 02-13-2008
MySQL

Thats perfect just what i needed thankyou so much, i know you dont agree with it, but it allows different users to use the same account and only the ones with the password can use firefox, plus it opens up the door for other stuff for me that id like to do, you are a star
sorry to have been a pain id really appreciate what you have done thank you thankyou thankyouSmilie
# 10  
Old 02-13-2008
I think they nhave what your asking for is a new security feature

I'm fairly certain this is the new security feature of which you speak is being currently used at the yahoo log in. perhaps contact their security and development.

Quote:
Originally Posted by dave123
Hi all, i hope i got this in the right place, what i am trying to do is make a program only run by root, ie
for instance user fred is logged in and uses firefox, what id like to do is change that so that when fred wants to use firefox he will be asked to enter root password before he is allowed to use it, is this possible and if so how, if anyone can help could they make it simple as im not very good
at this, i would be most gratefull for any help please.
# 11  
Old 02-13-2008
Data Different users to use the same account

Different users to use the same account are you absolutely sure you want to do that I have an account just like that and people started posting things at random that the rest of us who opted in wanted nothing to do with i'd think that one through first if I were you. If you do happen to do this and somewhere down the line you suddenly decide it's spam you have no one to blame but yourself for allowing the format in the first place and secondly you could be held liable.
# 12  
Old 02-13-2008
Network What if the administarator comes to you and says you allowed an open format

What if the administarator comes to you and says I'm sorry but you allowed an open format and we would like to have a word with you regarding your resposibilities behavior.
Quote:
Originally Posted by JamieOlender
Different users to use the same account are you absolutely sure you want to do that I have an account just like that and people started posting things at random that the rest of us who opted in wanted nothing to do with i'd think that one through first if I were you. If you do happen to do this and somewhere down the line you suddenly decide it's spam you have no one to blame but yourself for allowing the format in the first place and secondly you could be held liable.
# 13  
Old 02-15-2008
I havent a clue what you are on about, are you some kind of hacker or something, anyway i dont want to know youtube etc.
# 14  
Old 03-11-2008
Tools To Dave123

No Dave I am not a hacker but I am exceptionally skilled with computers and the manipulation of program code and URL's considering I own/have and am associated with over a hundred and eighty websites and blogs as a matter of fact. Yahoo and Google has turned me into a Legend Dave and I didn't even have to die first. Just place the name jamieolender into any google search and you'll see what I mean. When the computer first went public I used to sit on the computer 12 hours a day seven days a week now I'm down to 1 to 6 hours of general maintenance.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Can you gain root privileges if the suid program does not belong to root?

I had a question in my test which asked where suppose user B has a program with 's' bit set. Can user A run this program and gain root privileges in any way? I suppose not as the suid program run with privileges of owner and this program will run with B's privileges and not root. (1 Reply)
Discussion started by: syncmaster
1 Replies

2. UNIX for Advanced & Expert Users

Make a subdirectory the root directory

I have a series of configuration files to deliver to multiple unix environments (dev, test, bench, prod etc). However I don't to modify them for each environment. The files are text which currently contain this type of directory information IN=/DVT/ms/sas/reception/PIL_QPA_SID/GSPIN001... (5 Replies)
Discussion started by: clarcombe
5 Replies

3. Shell Programming and Scripting

Need to run a bash script that logs on as a non-root user and runs script as root

So I have a script that runs as a non-root user, lets say the username is 'xymon' . This script needs to log on to a remote system as a non-root user also and call up a bash script that runs another bash script as root. in short: user xymon on system A needs to run a file as root user and have... (2 Replies)
Discussion started by: damang111
2 Replies

4. Shell Programming and Scripting

Make script that run with argument if not run from configuration file argument

Hello, Is there any method thorugh which script can take argument if pass otherwise if argument doesn't pass then it takes the argument from the configuration file i.e I am workiing on a script which will run through crontab and the script will chekout the code ,zip and copy to the... (3 Replies)
Discussion started by: rohit22hamirpur
3 Replies

5. UNIX for Dummies Questions & Answers

I need to make a constant variables to the root

Hello every body, I need to make a constant variable to the root such as #PS1="I am Amer" and so on. I know if i am a user,I can make it fixed from #vi .profile HOW to make it fixed for the root? Thanks in advance BR Ahmed Amer Cairo,Egypt (7 Replies)
Discussion started by: ahmedamer12
7 Replies

6. AIX

make a mksysb without root credentials

dears, good day. i need to be able to take a mksysb for a machine running aix 6.1.5 without the root credentials and also without using sudo any advice ? (2 Replies)
Discussion started by: islam.said
2 Replies

7. UNIX for Dummies Questions & Answers

How to allow access to some commands having root privleges to be run bu non root user

hi i am new to unix and i have abig task. i have to \run particular commands having root privileges from a non root user. i know sudo is one of the way but i need sum other approach kindly help Thanks (5 Replies)
Discussion started by: suryashikha
5 Replies

8. UNIX for Advanced & Expert Users

how to make root user read all

I want to know what i can set up so that root user can read everything. On my Solaris systems root can read the following directory. drwxrwx--- 408 icsrc icarc0 36864 Aug 21 07:24 dev drwxrwsr-x 7 icsrc icarc0 4096 Aug 4 1998 test But on my linux systems it gets: # cd dev bash: cd:... (4 Replies)
Discussion started by: frankkahle
4 Replies

9. UNIX for Dummies Questions & Answers

Run non-root script as root with non-root environment

All, I want to run a non-root script as the root user with non-root environment variables with crontab. The non-root user would have environment variables for database access such as Oracle or Sybase. The root user does not have the Oracle or Sybase enviroment variables. I thought you could do... (2 Replies)
Discussion started by: bubba112557
2 Replies

10. Solaris

cant make dir as root

not sure what the problem is, when I go to /home and enter command mkdir i get this error mkdir chris mkdir: Failed to make directory "chris"; Operation not applicable im root.... (3 Replies)
Discussion started by: csaunders
3 Replies
Login or Register to Ask a Question