Re: Sudo Password forgotten Fedora 14 ...................... Hardware and Software Linux and Unix by rch1231 sudo uses your user password to give you access to root. So how would knoppix help? sudo su - user in a shell script Programming Software Development by enthu_Unix …NO PASSWORD) and user2 has will be able to sudo certain commands so following works fine from command prompt user1…@host] sudo su - user2 the above command opens up a new… me in as user2 user2@host] sudo cmd1 user2@host] sudo cmd2 user2@host] sudo cmd3 user2@host] exit user1@host]… Re: sudo su - user in a shell script Programming Software Development by rch1231 Hello, SUDO is to make you have root privileges for executing the … change to the other user in the script then drop sudo from and it will work. Re: sudo su - user in a shell script Programming Software Development by cfajohnson Use: sudo -U user <command or script> Sudo: unable to resolve host Legacy Hardware and Software Linux and Unix by Zeref Hi guys Everytime i use sudo in the terminal i get "sudo: unable to resolve host legacy" I had a look… Sudo Password forgotten Fedora 14 ...................... Hardware and Software Linux and Unix by prasantborn1990 Hi ,,, My Name is Prasant ,I am fairly new to linux ,the problem which im facing is ,i have forgotten my sudo password of my operating system(I am using Fedora 14 ) ,,,,kindly help me on this ,,,,,,,,,,,,,,, Re: Sudo Password forgotten Fedora 14 ...................... Hardware and Software Linux and Unix by rch1231 Your password for sudo us your user password.... Re: Sudo Password forgotten Fedora 14 ...................... Hardware and Software Linux and Unix by Chronister If you need to reset your sudo password, you can try and download Knoppix and fix it that way. Here's a tutorial on how to do it: [url]http://www.makeuseof.com/tag/how-to-reset-any-linux-password/[/url] Re: pyGTK and the Mandate of Sudo Programming Software Development by 1337455 10534 Sudo has its uses, overall I think its important, though it … then accordingly either uses gksu, kdesu or upon failed detection, sudo, to launch my app. There is a nice box where…. I've heard people say that launching graphical apps with sudo may cause X to 'bork', so I normally don't… How to execute "sudo source" Hardware and Software Linux and Unix by shwick …source command. The script has to be run as sudo because the environment variables need to be set for … account. The problem is you can't execute "sudo source installScript". How do I execute "source… installScript" as sudo, or root user? I already tried "sudo /bin/bash ./installScript". Re: How to execute "sudo source" Hardware and Software Linux and Unix by JeoSaurus … not a 'login shell' by default. If you use 'sudo su -l' ('sudo su -' for short) then you'll inherit all of… to your shell. Especially if you're running it with sudo, because in that environment, you're root just for that… pyGTK and the Mandate of Sudo Programming Software Development by 1337455 10534 …have a pyGTK app going on nicely, but it requires sudo permission (under Linux) to perform a BASH operation. …there any way I can do my BASH stuff without sudo asking the user for a password in the console?… [code=python] # example # ... from os import system # ... system("sudo mkdir /dev/home") [/code] Given a password, and using… Re: pyGTK and the Mandate of Sudo Programming Software Development by bgeddy …sudoers file with a NOPASSWD entry. I then aliased "sudo /home/test/makdir.sh to makdir.sh. I altered …"system('mkdir /dev/test'" - no need for the sudo as the whole thing was sudoed. Now just typing /home…possible as it would be highly dangerous. Personally - I hate sudo and would alias a program requiring root privileges to "… Re: pyGTK and the Mandate of Sudo Programming Software Development by rikxik Reading this it seem the requirement is to only use GUI to prompt for the password and use sudo functinality. Have you thought of calling gksu instead of sudo - gksu is a gtk frontend to sudo? i.e.: [CODE] # example # ... from os import system # ... system("gksu mkdir /dev/home") [/CODE] HTH How do I run something as sudo? Programming Software Development by riahc3 Hello I want to run a command as sudo (to be especific open a file) but I dont want to run the entire program as sudo obviously. How do i do a fopen with sudo previlges? I dont mind hardcoding the password (eg, so it wont ask me for my password) as this is for me and only I will use it. Thank you Re: How do I run something as sudo? Programming Software Development by fpsasm I don't know if this will work. But if you elevate the program like this: system ("sudo bash-something" + somestring); //results in the command 'sudo bash -something:somestring ' being called That should give you should give you sudo ( think ). system() allows you to run a command on the system (only works on linux afaik) Re: How to execute "sudo source" Hardware and Software Linux and Unix by John A In order to accomplish that, you'll need a root shell. If your root account is enabled, you can authenticate yourself with 'su', otherwise just run "sudo bash" (or whatever shell you prefer) and enter your password. Once you've obtained the root shell, you can run the source command and proceed with the install. Re: problem with sudo and test Programming Software Development by prushik … sorry. I forgot to mention that I did try that (sudo test) and the result was identical. I found the solution… as to why this only returns an error when using sudo. Also, I logged in as root and no errors were… returned. So this only occurs when using sudo. Why does this happen, I don't know enough about… Re: How to verify a package that requests sudo password? Hardware and Software Linux and Unix by RikTelner > So, use sudo to change to root: sudo su - ?, it requested plain password, program gave me pop-up and asked me for `sudo` password. > Checksums are good, and I think that Qt will provide those if you need. And in case I would need to download software from verified app developer, but doesn't provide checksums? Is there way to verify it? Re: Why does sudo use your password? Hardware and Software Linux and Unix by helioptra … has been irking me since I started. If I use sudo, I can get root powers for one command, however, it… large oversight, or was it intentional?[/QUOTE] The intention of sudo is to give you temporary root access. It is not… than you has root access, you have bigger problems than sudo...I assure you.... Hope that helps Re: How do I run something as sudo? Programming Software Development by riahc3 But where is my password? When I call sudo (or su in my case) it has to always ask me for my password. How to verify a package that requests sudo password? Hardware and Software Linux and Unix by RikTelner …, again, on new installation of Ubuntu. It asked me for `sudo` password, which is not strange since it wants to write… a way to verify running application that asks me for `sudo` password? Re: How to verify a package that requests sudo password? Hardware and Software Linux and Unix by rubberman So, use sudo to change to root: sudo su - Then, install the package. No passwords will be sent to any malware as a result. Checksums are good, and I think that Qt will provide those if you need. Re: problem with sudo and test Programming Software Development by masijade Actually do [inlinecode]sudo test ....[/inlinecode] rather than [inlinecode]sudo [ .... ][/inlinecode] Re: How to verify a package that requests sudo password? Hardware and Software Linux and Unix by RikTelner Okay, off with MD5 checksums, we're off to a wrong direction. The original question is: "How to verify a package that requests sudo password?" Forget everything I said about checksums. Using otherdrives without sudo Hardware and Software Linux and Unix by chound I could somehow make C, D, E drives mount when booting. But I have to type sudo to use it. What option should I include in fstab to make it work. I tried uid of no avail! problem with sudo and test Programming Software Development by prushik … error, run: [ "-i" == "-i" ] ; echo $? and sudo [ "-i" == "-i" ] ; echo $? the second will… Why does sudo use your password? Hardware and Software Linux and Unix by mordicaii I'm not exactly new to Unix, but this has been irking me since I started. If I use sudo, I can get root powers for one command, however, it asks for my password, not root's. Why is this? This seems to be a very large oversight, or was it intentional? Re: Sudo: unable to resolve host Legacy Hardware and Software Linux and Unix by Zeref heh I sorted the problem out in the /etc/hosts file i added 127.0.0.1 Legacy Now problem is sorted out :-) Re: change sudo setting Community Center by John A … /etc/sudoers file. Open up the sudoers file with [code]$ sudo visudo[/code] enter your password, then look in the file…