Problem with sudo
When I try to use sudo in the terminal, it gives an error message saying "sudo: unable to resolve host shaakunthala-laptop"
shaakunthala-laptop is the computer name. But the problem does not arise when the computer is connect to the network. Can anybody tell me how to fix this problem? Thank you! * Shaakunthala -- ..:Sameera Shaakunthala:.. -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
Problem with sudo
20080601 0929 GMT-6
When you click on the terminal, what is written on the screen? Mine is: wadesmart@wadesmart:~$ Wade Sameera Shaakunthala wrote: > When I try to use sudo in the terminal, it gives an error message saying > "sudo: unable to resolve host shaakunthala-laptop" > shaakunthala-laptop is the computer name. > But the problem does not arise when the computer is connect to the network. > > Can anybody tell me how to fix this problem? > > > Thank you! > > * Shaakunthala > > -- > ..:Sameera Shaakunthala:.. > -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
Problem with sudo
20080601 0929 GMT-6
When you click on the terminal, what is written on the screen? Mine is: wadesmart@wadesmart:~$ Wade Sameera Shaakunthala wrote: > When I try to use sudo in the terminal, it gives an error message saying > "sudo: unable to resolve host shaakunthala-laptop" > shaakunthala-laptop is the computer name. > But the problem does not arise when the computer is connect to the network. > > Can anybody tell me how to fix this problem? > > > Thank you! > > * Shaakunthala > > -- > ..:Sameera Shaakunthala:.. > -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
Problem with sudo
Wade Smart wrote:
> 20080601 0929 GMT-6 > > When you click on the terminal, what is written on the screen? > > Mine is: wadesmart@wadesmart:~$ > > Wade > > Sameera Shaakunthala wrote: > >> When I try to use sudo in the terminal, it gives an error message saying >> "sudo: unable to resolve host shaakunthala-laptop" >> shaakunthala-laptop is the computer name. >> But the problem does not arise when the computer is connect to the network. >> >> Can anybody tell me how to fix this problem? >> >> >> Thank you! >> >> * Shaakunthala >> >> -- >> ..:Sameera Shaakunthala:.. >> >> il ask rhe same question terminal should have nothing to do with being connected to the network. unless your computer is running slave and getting its OS from another machine > > > > -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
Problem with sudo
On Sun, 1 Jun 2008 14:22:37 +0000
"Sameera Shaakunthala" <shaakunthala@gmail.com> wrote: > When I try to use sudo in the terminal, it gives an error message saying > "sudo: unable to resolve host shaakunthala-laptop" > shaakunthala-laptop is the computer name. > But the problem does not arise when the computer is connect to the network. > Does shaakunthala-laptop exist in your /etc/hosts file? It should point at 127.0.0.1 -- Avi Greenbury -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
Problem with sudo
Thank you for* your replies...
Sorry, I forgot to tell how the initial terminal prompt goes, shaakunthala@shaakunthala-laptop:~$ Avi Greenbury's solution worked -- thanks Avi :) in this file, it was somehow shaakunthala-laptop.mshome.net pointed to 127.0.0.1 that's because i connect this laptop to a Windows network Thank you very much... ! Now I have to do is to log in as root (recovery mode) and vi /etc/hosts -- ..:Sameera Shaakunthala:.. -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
Problem with sudo
If you're trying to set it up on a laptop you actually need to do it on a desktop computer with ubuntu installed
> Date: Sun, 1 Jun 2008 16:19:15 +0100 > From: mike@mga.demon.co.uk > To: ubuntu-users@lists.ubuntu.com > Subject: Re: Problem with sudo > > Wade Smart wrote: > > 20080601 0929 GMT-6 > > > > When you click on the terminal, what is written on the screen? > > > > Mine is: wadesmart@wadesmart:~$ > > > > Wade > > > > Sameera Shaakunthala wrote: > > > >> When I try to use sudo in the terminal, it gives an error message saying > >> "sudo: unable to resolve host shaakunthala-laptop" > >> shaakunthala-laptop is the computer name. > >> But the problem does not arise when the computer is connect to the network. > >> > >> Can anybody tell me how to fix this problem? > >> > >> > >> Thank you! > >> > >> * Shaakunthala > >> > >> -- > >> ..:Sameera Shaakunthala:.. > >> > >> il ask rhe same question terminal should have nothing to do with being connected to the network. unless your computer is running slave and getting its OS from another machine > > > > > > > > > > > -- > ubuntu-users mailing list > ubuntu-users@lists.ubuntu.com > Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users Change the world with e-mail. Join the i’m Initiative from Microsoft. -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
Problem with sudo
On Sun, 1 Jun 2008 13:38:13 -0700
Brendan Strunk <bwstrunk@hotmail.com> wrote: > > If you're trying to set it up on a laptop you actually need to do it on a desktop computer with ubuntu installed What? Also, I keep getting your emails coming through with no line breaks. -- Avi Greenbury -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
Problem with sudo
Hi :)
in a script I want to set a value by "echo 1024 > /proc/sys/dev/hpet/max-user-freq". This is fine when I manually run "sudo -i", followed by writing the value, but not if I try to do it in one line, resp. in a script. spinymouse-sudo@64studio:~/Desktop$ cat /proc/sys/dev/hpet/max-user-freq 64 spinymouse-sudo@64studio:~/Desktop$ sudo echo 1024 > /proc/sys/dev/hpet/max-user-freq bash: /proc/sys/dev/hpet/max-user-freq: Permission denied spinymouse-sudo@64studio:~/Desktop$ sudo -i echo 1024 > /proc/sys/dev/hpet/max-user-freq bash: /proc/sys/dev/hpet/max-user-freq: Permission denied spinymouse-sudo@64studio:~/Desktop$ sudo -i root@64studio:~# echo 1024 > /proc/sys/dev/hpet/max-user-freq root@64studio:~# logout spinymouse-sudo@64studio:~/Desktop$ cat /proc/sys/dev/hpet/max-user-freq 1024 Any hints are welcome! Cheers, Ralf #!/bin/sh # As user run this script by: sh start-session song_version="[snip]" hpet_max_user_freq=1024 song_info=" ################################################## #################### # Project/ song: /mnt/music/[snip]/"$song_version" # Dec/26/2009 Ralf Mardorf # ralf.mardorf at alice-dsl dot net # # License for all artwork in the folder /[snip]: # Creative Commons # by-nc-sa = Attribution-NonCommercial- ShareAlike # http://creativecommons.org/licenses/by-nc-sa/3.0/ # Namensnennung-NichtKommerziell-Weitergabe unter gleichen Bedingungen # http://creativecommons.org/licenses/by-nc-sa/3.0/de/ ################################################## #################### " if [ $USER = "root" ] ; then echo " Only a user is allowed to run this script :) " ; exit 0 ; fi echo " Restoring session :)" echo $song_info sudo chgrp audio /dev/hpet echo "/etc/sysctl.conf" echo -n "dev.hpet.max-user-freq Value=" cat /etc/sysctl.conf | grep dev.hpet.max-user-freq= echo " " echo -n "/proc/sys/dev/hpet/max-user-freq Value=" cat /proc/sys/dev/hpet/max-user-freq echo " Make sure that the value is set to "$hpet_max_user_freq sudo echo $hpet_max_user_freq >/proc/sys/dev/hpet/max-user-freq echo echo -n "/proc/sys/dev/hpet/max-user-freq Value=" cat /proc/sys/dev/hpet/max-user-freq sudo modprobe snd-hrtimer echo " jackd -Rch -dalsa -dhw:0 -r96000 -p512 -n2 -Xseq" jackd -Rch -dalsa -dhw:0 -r96000 -p512 -n2 -Xseq & qtractor exit 0 _______________________________________________ 64studio-users mailing list 64studio-users@lists.64studio.com http://lists.64studio.com/mailman/listinfo/64studio-users |
Problem with sudo
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 Ralf Mardorf wrote: > Hi :) > > in a script I want to set a value by "echo 1024 > > /proc/sys/dev/hpet/max-user-freq". > This is fine when I manually run "sudo -i", followed by writing the > value, but not if I try to do it in one line, resp. in a script. > > spinymouse-sudo@64studio:~/Desktop$ cat /proc/sys/dev/hpet/max-user-freq > 64 > spinymouse-sudo@64studio:~/Desktop$ sudo echo 1024 > > /proc/sys/dev/hpet/max-user-freq > bash: /proc/sys/dev/hpet/max-user-freq: Permission denied > spinymouse-sudo@64studio:~/Desktop$ sudo -i echo 1024 > > /proc/sys/dev/hpet/max-user-freq > bash: /proc/sys/dev/hpet/max-user-freq: Permission denied > spinymouse-sudo@64studio:~/Desktop$ sudo -i > root@64studio:~# echo 1024 > /proc/sys/dev/hpet/max-user-freq > root@64studio:~# logout > spinymouse-sudo@64studio:~/Desktop$ cat /proc/sys/dev/hpet/max-user-freq > 1024 > > Any hints are welcome! > Put the script in root's crontab. sudo is designed as an interactive utility. The script should be run by a user with sufficient privileges to do what it needs to do. You can use sudo to run the script, but it should not be within the script. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAks1qFEACgkQwRXgH3rKGfM1QgCfU6wci5unqG Duopjnna3dJHbc FTQAniobM2zHMYzE8EMPH8vOtlG9rZ3J =jkJB -----END PGP SIGNATURE----- _______________________________________________ 64studio-users mailing list 64studio-users@lists.64studio.com http://lists.64studio.com/mailman/listinfo/64studio-users |
| All times are GMT. The time now is 04:45 AM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.