Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

su in gambas

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming
View previous topic :: View next topic  
Author Message
kricit



Joined: Fri Sep 16, 2005 3:36 pm
Posts: 3

PostPosted: Wed Sep 28, 2005 3:26 pm    Post subject: su in gambas Reply with quote

Hi all, I have been trying to add more functionality to my gambas application by allowing rrot access because i think that it is important to the application but when i send the bash command "su" it refuses it with a message like this "su not a standard tty" what does it mean and how can i fix this problem!

Thanks in advance for any help regarding this question.

Ashley Johnson
Kricit Project
_________________
Kricit :: Open Source Freedom
Back to top
View user's profile Send private message Send e-mail Visit poster's website
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8464
Location: Warrington, UK

PostPosted: Wed Sep 28, 2005 6:21 pm    Post subject: RE: su in gambas Reply with quote

It means that the su command is not being run in a terminal. Using su seems a bit of a risk anyway, sudo may be better and will run from a program.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
kricit



Joined: Fri Sep 16, 2005 3:36 pm
Posts: 3

PostPosted: Thu Sep 29, 2005 9:38 am    Post subject: RE: su in gambas Reply with quote

Hi, thanks for the reply I will try sudo now.......... Yep it works, thanks but it won't accept my root or user pswd. Does it have a password and how can i obtain it. I know that giving root priviledges is usually a bad idea but the program in question is Instaleeze and people can perform removal or installation of software without it. thanks for the information so far.

Many Thanks

Ashley Johnson
_________________
Kricit :: Open Source Freedom
Back to top
View user's profile Send private message Send e-mail Visit poster's website
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8464
Location: Warrington, UK

PostPosted: Thu Sep 29, 2005 9:52 am    Post subject: RE: su in gambas Reply with quote

You can set up sudo to allow users to run specific commands without a password. By default it won't allow anyone to run anything, you have to add the relevant commands and users to /etc/sudoers.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast