super user

Linux specific forum
Ace
User
User
Posts: 26
Joined: Fri Apr 25, 2003 8:34 pm

super user

Post by Ace »

is there a way to get super user rights? i need them to copy some files to protected directorys.
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Post by fsw »

Open a terminal and type:
su

then the next line will show up:
Password:

type in the root password and than you have Super User rights (at least in this terminal)

Hope this is what you are searching for...
Franco
Ace
User
User
Posts: 26
Joined: Fri Apr 25, 2003 8:34 pm

Post by Ace »

of cause i mean to get su right from an purebasic app.

for exsample:
if i'm loged in as normal user and want to copy files with my pb app to /opt/ i need su rights. how can i get the right to copy my files with pb?
ShDancer
User
User
Posts: 51
Joined: Sat Apr 26, 2003 5:49 am

Post by ShDancer »

I think you can't.

Or in other words you must run PB App as an SU, and then you have Super User rights. :P
Or configure sudo to give SU rigts to that user.

This is the only way that i know off maybe there are others, but i don't think so.
Ace
User
User
Posts: 26
Joined: Fri Apr 25, 2003 8:34 pm

Post by Ace »

i write a bash script. loggin as su and then starting the app. it's the easiest way.
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Post by fsw »

Ace wrote:i write a bash script. loggin as su and then starting the app. it's the easiest way.
Agreed :wink:
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> i mean to get su right from an purebasic app.

I doubt it. The security risks would be enormous... imagine being able to
run a PureBasic app on a secure system and then cause havoc with it...
Post Reply