[gentoo-user] sudo -l strange behavour when used via LDAP

2010-08-22 Thread Giampiero Gabbiani
Hi all, I configured sudo in order to use LDAP and set the corrisponding defaults on the DIT set to ignore_local_sudoers. After populating the DIT with the rules, sudo works perfectly but I have a problem with the list options of sudo (-l). It seems like sudo -l for NORMAL users (i.e. not root

Re: [gentoo-user] Manual pages (man pages) have ESC all through them when having used sudo.

2010-02-28 Thread Alan McKinnon
On Monday 01 March 2010 00:57:17 William Hubbs wrote: > On Mon, Mar 01, 2010 at 12:16:14AM +0200, Alan McKinnon wrote: > > "sudo su" and "su" have a fundamental difference, vital in corporate > > networks: > > > > The former uses the use

Re: [gentoo-user] Problem with sudo

2012-07-01 Thread Neil Bothwick
On Sat, 30 Jun 2012 21:55:27 -0500, Alecks Gates wrote: > Did you use it interactively? It should look like this: > alecks@linux:~$ sudo -i > root@linux: ~# echo "sys-boot/grub:2 **" >> > /etc/portage/package.accept_keywords/package.keywords.grub2 > > Just t

[gentoo-user] no cd under sudo

2005-05-09 Thread Harry Putnam
I'm noticing a problem using sudo where the builtin cd command is not known under sudo. User attempts to `ls dir', receives `permission denied' ( its a root owned dir) User uses `sudo ls dir', and is queried for password, sudo then prints the ls display when password is su

Re: [gentoo-user] no cd under sudo

2005-05-09 Thread YoYo Siska
Harry Putnam wrote: > I'm noticing a problem using sudo where the builtin cd command is not > known under sudo. > > User attempts to `ls dir', receives `permission denied' ( its a root > owned dir) > > User uses `sudo ls dir', and is queried for passwor

Re: [gentoo-user] Manual pages (man pages) have ESC all through them when having used sudo.

2010-02-28 Thread William Hubbs
On Mon, Mar 01, 2010 at 12:16:14AM +0200, Alan McKinnon wrote: > "sudo su" and "su" have a fundamental difference, vital in corporate networks: > > The former uses the user's password for authentication and sudoers for > authorization. The latter us

[gentoo-user] sudo-1.9.8_p2 produces Segmentation Fault on any use

2021-11-09 Thread Anton
On a recent update, `sudo` got upgraded from sudo-1.9.6_p1-r2 to sudo-1.9.8_p2. Since then, any call to `sudo` other than `sudo --help` resulted in a Segmentation Fault. I have tried remerging sudo again or remerging the PAM-related dependencies, but it did not help. Switching back to 1.9.6

Re: [gentoo-user] Manual pages (man pages) have ESC all through them when having used sudo.

2010-02-28 Thread Alan McKinnon
On Sunday 28 February 2010 23:27:57 William Hubbs wrote: > > 7 years ago a veteran Linux user taught me to always use su - for the > > very reason you stated. > > > Actually, you are safe with either "su -" (without sudo) or "sudo -i". > "sud

Re: [gentoo-user] Re: Manual pages (man pages) have ESC all through them when having used sudo.

2010-02-28 Thread ubiquitous1980
Neil Bothwick wrote: > On Sun, 28 Feb 2010 13:06:43 +0800, ubiquitous1980 wrote: > > >>> Some ENV variables are unset by sudo. >>> > > You can alter that behaviour in /etc/sudoers. I have > > Defaults:%wheel !env_reset > > and don't see

Re: [gentoo-user] sudo echo

2006-03-23 Thread Holly Bostick
JimD schreef: > I have been using Linux for a number of years and the one "trick" I > have never read how to do is something like: > > sudo echo "app-portage/porthole ~*" >> /etc/portage/package.keywords Well this one I do with a set of revised comm

Re: [gentoo-user] Re: Manual pages (man pages) have ESC all through them when having used sudo.

2010-02-28 Thread Neil Bothwick
On Sun, 28 Feb 2010 13:06:43 +0800, ubiquitous1980 wrote: > > Some ENV variables are unset by sudo. You can alter that behaviour in /etc/sudoers. I have Defaults:%wheel !env_reset and don't see this. > > But anyway, "sudo su" makes zero sense :P > sudo su make

Re: [gentoo-user] sudo-1.9.8_p2 produces Segmentation Fault on any use

2021-11-09 Thread Jack
On 2021.11.09 15:36, Anton wrote: On a recent update, `sudo` got upgraded from sudo-1.9.6_p1-r2 to sudo-1.9.8_p2. Since then, any call to `sudo` other than `sudo --help` resulted in a Segmentation Fault. I have tried remerging sudo again or remerging the PAM-related dependencies, but it did

Re: [gentoo-user] sudo echo

2006-03-23 Thread Daniel da Veiga
On 3/23/06, Holly Bostick <[EMAIL PROTECTED]> wrote: > JimD schreef: > > I have been using Linux for a number of years and the one "trick" I > > have never read how to do is something like: > > > > sudo echo "app-portage/porthole ~*" >>

Re: [gentoo-user] sudo-1.9.8_p2 produces Segmentation Fault on any use

2021-11-09 Thread tastytea
On 2021-11-09 22:36+0200 Anton wrote: > On a recent update, `sudo` got upgraded from sudo-1.9.6_p1-r2 to > sudo-1.9.8_p2. Since then, any call to `sudo` other than `sudo > --help` resulted in a Segmentation Fault. I have tried remerging sudo > again or remerging the PAM-related

[gentoo-user] Broken sudo

2005-06-26 Thread Chris Ong
Hi all, And recent upgrade sudo-1.6.8_p9 make sudo with password inpossible. After update sudo to the mentioned version, I get the problem and fixed by FAQ section in http://www.courtesan.com/sudo/troubleshooting.html Q) Sudo says 'Account expired or PAM config lacks an &qu

Re: [gentoo-user] Bash prompt

2005-09-14 Thread Willie Wong
On Wed, Sep 14, 2005 at 05:45:08PM +0200, Holly Bostick wrote: > OK, you're right. I think that the problems that I was working around > may have been based in *sudo*, not su itself, which works fine (now), as > does sudo su. But when I was setting up my system with sudo (like a >

[gentoo-user] Re: How many ways are there for a user to increase their permissions?

2010-04-18 Thread Lie Ryan
On 04/18/10 11:02, Jonathan wrote: > On Sun, 18 Apr 2010 08:29:37 +1000 > Lie Ryan wrote: > >> sudoedit is mainly just a shortcut for "sudo $EDITOR" (plus doing a >> few things). > > sudoedit is safer then sudo because sudoedit runs as root but nano > (T

Re: [gentoo-user] Back up with no root

2005-05-29 Thread Boyd Stephen Smith Jr.
On Sunday 29 May 2005 04:42 pm, Pupeno <[EMAIL PROTECTED]> wrote: > On Sunday 29 May 2005 16:53, Boyd Stephen Smith Jr. wrote: > > I never use rsync myself, but why not just use --rsh="ssh 'su -'" > > instead of --rsh="ssh"? > > It'd

Re: [gentoo-user] Re: Manual pages (man pages) have ESC all through them when having used sudo.

2010-02-28 Thread ubiquitous1980
Neil Bothwick wrote: > On Sun, 28 Feb 2010 18:48:56 +0800, ubiquitous1980 wrote: > > >>> The root account is hardly locked if you can log into it with sudo su >>> (or sudo screen) but sudo -s or sudo -i make more sense in this >>> situation. >>&

Re: [gentoo-user] Re: bash upgrading problem

2019-01-21 Thread Jacques Montier
Le lun. 21 janv. 2019 à 19:04, Nikos Chantziaras a écrit : > > I can't see why "emerge -uv bash" would ever invoke sudo. So I'd say > that you should first find out what command is being executed with sudo. > To do that, try to emerge bash, and when the sudo pro

Re: [gentoo-user] su doesn't work for me.

2011-04-10 Thread Mark Shields
ser, like maybe some little kid, getting root access for any > > reason. > > No, it's pretty standard across Unix. > > The BSD's for example have had it since forever - members of the wheel > group > being allowed to sudo anything only came along much later. > &

Re: [gentoo-user] Rooted/compromised Gentoo, seeking advice

2010-08-09 Thread William Hubbs
On Mon, Aug 09, 2010 at 05:30:40PM -0700, Kevin O'Gorman wrote: > On Mon, Aug 9, 2010 at 1:20 PM, Bill Longman wrote: > > > On 08/09/2010 01:08 PM, Robert Bridge wrote: > > > On Mon, Aug 9, 2010 at 8:09 PM, Mick wrote: > > >> There have been discussions o

Re: [gentoo-user] Problem with sudo

2012-06-30 Thread 赵佳晖
I have use your method , it didn't work . Like: sudo echo "sys-boot/grub:2 **" >> /etc/portage/package.accept_keywords/package.keywords.grub2 echo "sys-boot/grub:2 **" | sudo tee /etc/portage/package.accept_keywords/package.keywords.grub2 And the result : zjhu

Re: [gentoo-user] su doesn't work for me.

2011-04-10 Thread Alan McKinnon
; >> Best regards, > > > >> Yann > > > > > > I think that is a Gentoo thing. It does add some security if you don't > > > want a user, like maybe some little kid, getting root access for any > > > reason. > > > > No, it'

Re: [gentoo-user] Problem with sudo

2012-07-03 Thread Willie WY Wong
On Sun, Jul 01, 2012 at 10:41:12AM +0800, Penguin Lover 赵佳晖 squawked: > I have use your method , it didn't work . > Like: > sudo echo "sys-boot/grub:2 **" >> > /etc/portage/package.accept_keywords/package.keywords.grub2 echo > "sys-boot/grub:2 **" | s

[gentoo-user] Re: two identical /etc/sudoers -- only one works

2007-05-25 Thread Christer Ekholm
I was wrong. Sorry. I realize now that this cannot be your problem, sudo tell you that it is not setuid if it's not. $ sudo chmod -s sudo $ sudo ls sudo: must be setuid root > > Thanks Christer, never saw that command before, but > like I told Walter, a listing for sudo is

Re: [gentoo-user] sudo echo

2006-03-23 Thread Daniel da Veiga
On 3/23/06, JimD <[EMAIL PROTECTED]> wrote: > I have been using Linux for a number of years and the one "trick" I > have never read how to do is something like: > > sudo echo "app-portage/porthole ~*" >> /etc/portage/package.keywords if you do this,

Re: [gentoo-user] OT - sudo doesn't do echo

2005-04-08 Thread Daniel Westermann-Clark
On 2005-04-08 08:06:47 -0400, Bill Roberts wrote: > $ sudo echo something >> /etc/portage/package.keywords > -/bin/bash: /etc/portage/package.keywords: Permission denied Chris already gave one solution, but I can explain the problem. In your original command, the redirection is happe

Re: [gentoo-user] Problem with sudo

2012-06-30 Thread Éric DUNAND
Le Sat, 30 Jun 2012 19:48:28 +0100, Neil Bothwick a écrit : > On Sun, 1 Jul 2012 01:27:49 +0800, 赵佳晖 wrote: > > > In some cases , when i run somethings with "sudo" , it tells me > > "Permission Denied" , then i should turn to root . i forgot to > > r

Re: [gentoo-user] how to restart the network, no net.enp1s0

2022-01-16 Thread Mark Knecht
rt my network? > > Obviously the answers depends completely on how you are managing services and what executables you have on your highly customizable Gentoo machine, but possibly: sudo service network-manager restart sudo systemctl restart NetworkManager.service sudo nmcli networking of

Re: [gentoo-user] no cd under sudo

2005-05-09 Thread Christoph Gysin
Harry Putnam wrote: sudo cd dir sudo: cd: command not found sudo will execute its arguments. 'cd' can't be executed, it is a shell builtin. Try: $ sudo bash -c "cd dir; do_what_you like" Christoph -- echo mailto: NOSPAM !#$.'<*>'|sed 's. ..&#

Re: [gentoo-user] su doesn't work for me.

2011-04-10 Thread Mark Shields
you > don't > > > > want a user, like maybe some little kid, getting root access for any > > > > reason. > > > > > > No, it's pretty standard across Unix. > > > > > > The BSD's for example have had it since forever - members

Re: [gentoo-user] Problem with sudo

2012-07-03 Thread 赵佳晖
Oh,yes , i misunderstand it . Thank you 2012/7/3 Willie WY Wong > On Sun, Jul 01, 2012 at 10:41:12AM +0800, Penguin Lover 赵佳晖 squawked: > > I have use your method , it didn't work . > > Like: > > sudo echo "sys-boot/grub:2 **" >> > > /etc/portag

Re: [gentoo-user] Rooted/compromised Gentoo, seeking advice

2010-08-09 Thread Indexer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/08/2010, at 11:44 AM, Frank Steinmetzger wrote: > Am Dienstag, 10. August 2010 schrieb Paul Hartman: > >> Typing that long password into sudo every time I ran a command was a >> hassle > > I’ve never used sudo, an

Re: [gentoo-user] Broken sudo

2005-06-27 Thread Sean Higgins
: > Hi all, > And recent upgrade sudo-1.6.8_p9 make sudo with password inpossible. > > After update sudo to the mentioned version, I get the problem and fixed > by FAQ section in > > http://www.courtesan.com/sudo/troubleshooting.html > > Q) Sudo says 'Acc

Re: [gentoo-user] Manual pages (man pages) have ESC all through them when having used sudo.

2010-02-28 Thread William Hubbs
On Sun, Feb 28, 2010 at 03:56:13PM -0500, stosss wrote: > On Sun, Feb 28, 2010 at 7:28 AM, pk wrote: > > ubiquitous1980 wrote: > > > >>> http://lists.debian.org/debian-security/2006/07/msg00059.html > > > >> With "sudo su - " the man pages do n

Re: [gentoo-user] bash completion doesn't always work with sudo

2014-04-06 Thread staticsafe
On 4/6/2014 06:44, Nikos Chantziaras wrote: > I have a problem where commands preceded by "sudo" are not always > auto-completed. This happens with executables that don't have user > execute permission. For example, net-analyzer/tcptraceroute installs > this binary: &g

Re: [gentoo-user] bash completion doesn't always work with sudo

2014-04-06 Thread Rockinghorse Winner (Terry)
staticsafe wrote: On 4/6/2014 06:44, Nikos Chantziaras wrote: I have a problem where commands preceded by "sudo" are not always auto-completed. This happens with executables that don't have user execute permission. For example, net-analyzer/tcptraceroute installs this binary:

Re: [gentoo-user] how to restart the network, no net.enp1s0

2022-01-21 Thread n952162
thing change here? What do I need to do to restart my network? Obviously the answers depends completely on how you are managing services and what executables you have on your highly customizable Gentoo machine, but possibly: sudo service network-manager restart sudo systemctl re

Re: [gentoo-user] Update to /etc/sudoers disables wheel users!!!

2022-10-26 Thread Ramon Fischer
I have created an issue at their Git repository. Maybe there will be solution for this: https://github.com/sudo-project/sudo/issues/190 -Ramon On 26/10/2022 21:28, Grant Taylor wrote: On 10/26/22 12:22 PM, Neil Bothwick wrote: You need to be root to write to /etc/sudoers.d. If someone

Re: [gentoo-user] OT - sudo doesn't do echo

2005-04-08 Thread Bill Roberts
On 08:51 Fri 08 Apr , Daniel Westermann-Clark wrote: > On 2005-04-08 08:06:47 -0400, Bill Roberts wrote: > > $ sudo echo something >> /etc/portage/package.keywords > > -/bin/bash: /etc/portage/package.keywords: Permission denied > > Chris already gave one solu

Re: [gentoo-user] Rooted/compromised Gentoo, seeking advice

2010-08-09 Thread Alan McKinnon
ug 9, 2010 at 8:09 PM, Mick wrote: > > > >> There have been discussions on this list why sudo is a bad idea and > > > >> sudo > > > > > > on > > > > > > >> *any* command is an even worse idea. You might as well be running > > >

[gentoo-user] Re: bash upgrading problem

2019-01-21 Thread Nikos Chantziaras
On 21/01/2019 20:25, Jacques Montier wrote: Le lun. 21 janv. 2019 à 19:04, Nikos Chantziaras <mailto:rea...@gmail.com>> a écrit : I can't see why "emerge -uv bash" would ever invoke sudo. So I'd say that you should first find out what command is being exec

Re: [gentoo-user] How to poweroff the system from user?

2015-03-22 Thread Walter Dnes
On Sun, Mar 22, 2015 at 03:30:49AM -0400, German wrote > Thanks, I decide to go with sudo on this one. However when I try > to run it, it says: "Username is not in the sudoers file." Where is > this file located and how can I add the user to it? Thanks Here's how it

Re: [gentoo-user] gentoo boot content in wrong partition

2024-05-27 Thread Jude DaShiell
lete" echo "press to chroot into gentoo environment." read sudo mount /dev/sda3 /mnt/gentoo sudo mount /dev/sda1 /mnt/gentoo/efi sudo swapon /dev/sda2 sudo cp --dereference /etc/resolv.conf /mnt/gentoo/etc sudo mount --types proc /proc /mnt/gentoo/proc sudo mount --rbind /sys /

Re: [gentoo-user] sudo echo

2006-03-23 Thread Alexander Skwar
Holly Bostick wrote: > JimD schreef: >> I have been using Linux for a number of years and the one "trick" I >> have never read how to do is something like: >> >> sudo echo "app-portage/porthole ~*" >> /etc/portage/package.keywords > > W

[gentoo-user] Re: suppressing the 'would you like to add --pretend' prompt when using emerge --ask

2016-04-17 Thread »Q«
On Sun, 17 Apr 2016 20:02:54 +0200 Ralf wrote: > ... What about aliasing emerge to sudo emerge? :-) Because sometimes I want to use sudo with emerge and sometimes not. I do have sudo-included aliases for a couple of the more common cases, alias upworld='sudo emerge -auvD --changed-us

Re: [gentoo-user] sudo echo cannot write to /etc/ files ?

2005-07-06 Thread Edward Catmur
On Wed, 2005-07-06 at 15:52 +0200, Holly Bostick wrote: > Echo is in the sudo-ed group, and echo isn't the problem-- the problem > is that permission is refused to write to the file itself (which is an > error *from* echo, so it would seem that echo itself is OK as far as > sudo g

Re: [gentoo-user] sudo echo cannot write to /etc/ files ?

2005-07-06 Thread Richard Fish
Boyd Stephen Smith Jr. wrote: > > You want: > sudo "echo 'media-video/xine-ui ~x86' >> /etc/portage/package.keywords" > No, I'm sorry, this is completely false. Running sudo "echo 'media-video/xine-ui ~x86' >> /etc/portage

Re: [gentoo-user] sudo echo

2006-03-23 Thread Boyd Stephen Smith Jr.
On Thursday 23 March 2006 16:33, JimD <[EMAIL PROTECTED]> wrote about 'Re: [gentoo-user] sudo echo': > If you type something like the following: > > "> /tmp/myfile.foo" > > It will truncate the file. I use it when I want to clear out logs real > qu

Re: [gentoo-user] Re: Manual pages (man pages) have ESC all through them when having used sudo.

2010-02-28 Thread Alan McKinnon
On Sunday 28 February 2010 07:06:43 ubiquitous1980 wrote: > Nikos Chantziaras wrote: > > On 02/28/2010 05:57 AM, ubiquitous1980 wrote: > >> If I have logged in through sudo such as $ sudo su, when I then use man > >> pages, they are covered in "ESC".

Re: [gentoo-user] Re: Manual pages (man pages) have ESC all through them when having used sudo.

2010-02-28 Thread Neil Bothwick
On Sun, 28 Feb 2010 18:48:56 +0800, ubiquitous1980 wrote: > > The root account is hardly locked if you can log into it with sudo su > > (or sudo screen) but sudo -s or sudo -i make more sense in this > > situation. > localhost ubiquitous1980 # passwd -l root > Passw

[gentoo-user] Re: two identical /etc/sudoers -- only one works

2007-05-25 Thread Christer Ekholm
"Walter Dnes" <[EMAIL PROTECTED]> writes: > On Wed, May 23, 2007 at 06:14:53PM -0700, maxim wexler wrote >> Hi group, >> >> I connect to the web using >> >> $sudo /usr/sbin/pon >> >> on one machine(2.6.20-gentoo-r6). On another

Re: [gentoo-user] Root shell terminates after first keystroke

2008-03-21 Thread Tim
Eric Martin wrote: > Tim wrote: >> Tonight, for no apparent reason, a problem has started cropping up when >> I 'sudo su'. The root shell will start up fine, but after the first time >> I hit a key, the shell terminates - apparently normally. A sample try >

Re: [gentoo-user] gentoo boot content in wrong partition

2024-05-27 Thread Dale
echo "once disk setup from gentoo handbook is complete" > echo "press to chroot into gentoo environment." > read > sudo mount /dev/sda3 /mnt/gentoo > sudo mount /dev/sda1 /mnt/gentoo/efi > sudo swapon /dev/sda2 > sudo cp --dereference /etc/resolv.conf /mnt/ge

[gentoo-user] Re: Manual pages (man pages) have ESC all through them when having used sudo.

2010-02-27 Thread Nikos Chantziaras
On 02/28/2010 05:57 AM, ubiquitous1980 wrote: If I have logged in through sudo such as $ sudo su, when I then use man pages, they are covered in "ESC". This does not occur when using normal user accounts or the root account through su. Wondering what is going on. Thanks. Some ENV

Re: [gentoo-user] Re: X programs as root

2010-09-27 Thread Helmut Jarausch
On 09/25/10 01:35:16, Nikos Chantziaras wrote: ... > > But if some reason you want sudo, /etc/sudoers has some info: > >## Run X applications through sudo > > Read the comments there and uncomment what suits you. Did I mention > that you should use kdesu instea

Re: [gentoo-user] sudo echo cannot write to /etc/ files ?

2005-07-06 Thread Holly Bostick
Edward Catmur schreef: > On Wed, 2005-07-06 at 15:52 +0200, Holly Bostick wrote: > >>Echo is in the sudo-ed group, and echo isn't the problem-- the problem >>is that permission is refused to write to the file itself (which is an >>error *from* echo, so it would seem

Re: [gentoo-user] Re: Manual pages (man pages) have ESC all through them when having used sudo.

2010-02-27 Thread ubiquitous1980
Nikos Chantziaras wrote: > On 02/28/2010 05:57 AM, ubiquitous1980 wrote: >> If I have logged in through sudo such as $ sudo su, when I then use man >> pages, they are covered in "ESC". This does not occur when using normal >> user accounts or the root account throu

Re: [gentoo-user] sudo echo

2006-03-23 Thread Alexander Skwar
JimD wrote: > I have been using Linux for a number of years and the one "trick" I > have never read how to do is something like: > > sudo echo "app-portage/porthole ~*" >> /etc/portage/package.keywords echo whatnot | sudo sh -c ">> foo" If

Re: [gentoo-user] sudo echo

2006-03-23 Thread Nick Rout
On Thu, 23 Mar 2006 16:03:08 -0500 JimD wrote: > I have been using Linux for a number of years and the one "trick" I > have never read how to do is something like: > > sudo echo "app-portage/porthole ~*" >> /etc/portage/package.keywords > > Another o

[gentoo-user] Re: bash completion doesn't always work with sudo

2014-04-06 Thread Nikos Chantziaras
On 06/04/14 18:58, staticsafe wrote: On 4/6/2014 06:44, Nikos Chantziaras wrote: I have a problem where commands preceded by "sudo" are not always auto-completed. This happens with executables that don't have user execute permission. For example, net-analyzer/tcptraceroute insta

Re: [gentoo-user] Manual pages (man pages) have ESC all through them when having used sudo.

2010-02-28 Thread ubiquitous1980
pk wrote: > ubiquitous1980 wrote: > >> If I have logged in through sudo such as $ sudo su, when I then use man >> pages, they are covered in "ESC". This does not occur when using normal >> user accounts or the root account through su. Wondering what is g

Re: [gentoo-user] sudo difficulties

2006-04-05 Thread JimD
On Wed, April 5, 2006 8:06 pm, Grant wrote: > > I actually tried that first and when that failed I tried something > like that specified here: > > www.gentoo.org/doc/en/sudo-guide.xml > > Either way I get: > > [EMAIL PROTECTED] ~ $ /sbin/shutdown -h now shutdown: you

Re: [gentoo-user] For all you sudo-happy users out there!

2019-10-15 Thread David Haller
Hello, On Tue, 15 Oct 2019, Mick wrote: >I have very limited sudo commands configured, but I better resync to see >what's the latest stable sudo on the tree. > >https://www.engadget.com/2019/10/14/linux-unix-sudo-command-security-flaw/? >guccounter=1 Yeah right, that

Re: [gentoo-user] Update to /etc/sudoers disables wheel users!!!

2022-10-26 Thread Grant Taylor
On 10/26/22 12:22 PM, Neil Bothwick wrote: You need to be root to write to /etc/sudoers.d. If someone has that access, you are already doomed! And what happens if someone uses the existing root-via-sudo access to break sudo? You loose root-via-sudo access. Someone could become root, via

Re: [gentoo-user] sudo echo

2006-03-23 Thread Hans-Werner Hilse
Hi, On Thu, 23 Mar 2006 16:03:08 -0500 JimD <[EMAIL PROTECTED]> wrote: > I have been using Linux for a number of years and the one "trick" I > have never read how to do is something like: > > sudo echo "app-portage/porthole ~*" >> /etc/portage/pac

Re: [gentoo-user] Re: Manual pages (man pages) have ESC all through them when having used sudo.

2010-02-27 Thread Dale
chrome://messenger/locale/messengercompose/composeMsgs.properties: Nikos Chantziaras wrote: On 02/28/2010 05:57 AM, ubiquitous1980 wrote: If I have logged in through sudo such as $ sudo su, when I then use man pages, they are covered in "ESC". This does not occur when us

[gentoo-user] Sudo config

2008-06-20 Thread Paul Melvin
HI, I have been using ubuntu for a while and have come to like sudo. Now I am moving over to gentoo and would like to set this up as for me it is far more convenient to just type sudo rather than the su business. However when I emerge sudo, install and run it the following comes up

Re: [gentoo-user] Rooted/compromised Gentoo, seeking advice

2010-08-10 Thread Kevin O'Gorman
On Mon, Aug 9, 2010 at 6:18 PM, William Hubbs wrote: > On Mon, Aug 09, 2010 at 05:30:40PM -0700, Kevin O'Gorman wrote: > > On Mon, Aug 9, 2010 at 1:20 PM, Bill Longman > wrote: > > > I actually prefer "sudo su -" -- as long as I'm giving it away! :o) &

Re: [gentoo-user] Sudo config

2008-06-20 Thread Anthony Metcalf
Paul Melvin wrote: HI, I have been using ubuntu for a while and have come to like sudo. Now I am moving over to gentoo and would like to set this up as for me it is far more convenient to just type sudo rather than the su business. However when I emerge sudo, install and run it

Re: [gentoo-user] Rooted/compromised Gentoo, seeking advice

2010-08-10 Thread Alan McKinnon
On Tuesday 10 August 2010 15:03:19 Kevin O'Gorman wrote: > On Mon, Aug 9, 2010 at 6:18 PM, William Hubbs wrote: > > On Mon, Aug 09, 2010 at 05:30:40PM -0700, Kevin O'Gorman wrote: > > > On Mon, Aug 9, 2010 at 1:20 PM, Bill Longman > > > > wrote: > >

Re: [gentoo-user] /usr/local/portage does not seem to have a valid PORTDIR structure.

2005-11-06 Thread Holly Bostick
Norberto Bensa schreef: > Holly Bostick wrote: > >> you're using sudo. I find many anomolies in sudo; > > > Why does people hate sudo so much? > Actually, I don't hate sudo at all; I use it all the time, and it saves a lot of difficulty. I just get annoyed bec

[gentoo-user] For all you sudo-happy users out there!

2019-10-15 Thread Mick
I have very limited sudo commands configured, but I better resync to see what's the latest stable sudo on the tree. https://www.engadget.com/2019/10/14/linux-unix-sudo-command-security-flaw/? guccounter=1 -- Regards, Mick signature.asc Description: This is a digitally signed message part.

Re: [gentoo-user] OT - sudo doesn't do echo

2005-04-08 Thread A. Khattri
On Fri, 8 Apr 2005, Bill Roberts wrote: > I've started using sudo in preference to su'ing, but I've found that > "echo" doesn't seem to work with sudo. > > When I: > > $ sudo echo something >> /etc/portage/package.keywords > -/bin/bash: /e

Re: [gentoo-user] Am I wrong?..

2009-10-01 Thread James Ausmus
#x27;s a better way, I'm just too lazy to look for it... >> > > Man, running "sudo visudo" and just running "visudo" is not the same. > Be careful. Nano is hardcoded in sudo's ebuild. > > OK, for the Nth time on this thread - it is all about *YOUR* c

[gentoo-user] Re: Where does sudo get the PATH ?

2012-10-23 Thread Nicolas Richard
"Nicolas Richard" writes: > I don't understand where sudo finds the value for the PATH env > variable. Finally, I found where the problem lied. Recall that my problem was the following : I had a path in `sudo env | grep ^PATH' which did not seem to originate from

Re: [gentoo-user] Re: two identical /etc/sudoers -- only one works

2007-05-25 Thread maxim wexler
> Example: > > $ pwd > /usr/bin > $ ls -li sudo > 8803772 ---s--x--x 2 root root 107240 2007-05-21 > 11:11 sudo* > $ find . -inum 8803772 > ./sudo > ./foo > $ ls -li foo > 8803772 ---s--x--x 2 root root 107240 2007-05-21 > 11:11 foo* >

Re: [gentoo-user] how to restart the network, no net.enp1s0

2022-01-21 Thread n952162
etc/init.d/net.enp1s0 link or other interesting candidate. Do something change here? What do I need to do to restart my network? Obviously the answers depends completely on how you are managing services and what executables you have on your highly customizable Gentoo machine, but possibly: su

Re: [gentoo-user] sudo echo

2006-03-25 Thread Alexander Skwar
Neil Bothwick wrote: > On Fri, 24 Mar 2006 00:58:09 +0100, Renat Golubchyk wrote: > >> Alright, then run >> sudo bash -c 'echo some_string >> some_file' >> No problem here :) > > Except this means you have to give the user permission to run bash,

[gentoo-user] sudo requires password twice

2006-06-09 Thread Daevid Vincent
I've rebooted many times since. I can login from ssh or console. One odd behaviour: [EMAIL PROTECTED] ~ $ sudo ifconfig Password: Password: eth0 Link encap:Ethernet HWaddr 00:08:74:E0:5C:3B inet addr:172.16.35.234 Bcast:172.16.63.255 Mask:255.255.224.0 ... Wh

Re: [gentoo-user] sudo echo

2006-03-23 Thread Bo Andresen
On Thursday 23 March 2006 23:38, Renat Golubchyk wrote: > On Thu, 23 Mar 2006 18:27:46 -0300 "Daniel da Veiga" > > <[EMAIL PROTECTED]> wrote: > > Sudo takes a command as parameter, enclose the whole command in quotes > > and try again, like this: >

Re: [gentoo-user] Back up with no root

2005-05-28 Thread Walter Dnes
On Sat, May 28, 2005 at 09:47:20AM -0400, Mark Shields wrote > Obviously, if you've never used sudo you'll have to emerge the package > app-admin/sudo. Then, configure /etc/sudoers with the visudo command. > Find #%wheel ALL=(ALL)ALL and uncomment it. Then, add the

RE: [gentoo-user] sudo requires password twice

2006-10-05 Thread Daevid Vincent
I've not figured this out yet, so reposting in case someone has any ideas... I did find this link: http://www.mail-archive.com/openpkg-users@openpkg.org/msg01747.html But I tried to add this: authrequiredtry_first_pass To my /etc/pam.d/sudo file and it didn't work

Re: [gentoo-user] sudo echo cannot write to /etc/ files ?

2005-07-06 Thread Boyd Stephen Smith Jr.
Holly Bostick wrote: [EMAIL PROTECTED] schreef: I think the problem come from the fact that echo is sudo-ed but the shell redirection isn't. Compare this: su -c "echo foo > /etc/portage/whatever" and su -c "echo foo" > /etc/portage/whatever The first one w

Re: [gentoo-user] upgrading from kernel 2.6.24-rc6 to latest kernel

2009-05-18 Thread Alan McKinnon
ples. Huh? The package you are talking about is sudo. Might I add that sudo follows the grand time honoured tradition of the principle of least priviledge whereas su does not? su offers no means to selectively allow what a user may and may not be authorised to do. It's an all or nothing ap

[gentoo-user] Where does sudo get the PATH ?

2012-10-08 Thread Nicolas Richard
Hi everybody, I don't understand where sudo finds the value for the PATH env variable. Here is the output of the relevant (at least I thought they were) commands. Can somebody explain to me why I still have /usr/local/texlive/*2011*/bin/i386-linux in the first sudo output ? I don't g

Re: [gentoo-user] sudo

2005-08-25 Thread C.Beamer
John Dangler wrote: > I’m looking into setting up sudo on my latest test box > (stage3/genkernel 2.6.12—r9) > > In portage, sudo says “Allows users or groups to run commands as other > users”. The latest stable shows *1.6.8_p9 (although the one before is > it unstable, and the

Re: [gentoo-user] logging my activity for audits

2018-09-12 Thread Grant Taylor
On 09/12/2018 12:24 AM, J. Roeleveld wrote: Does sudo have a shell-mode? You can use "-i" to invoke a shell, but that's just the target users destination shell. I prefer to use a utility (wrapper) that I wrote that allows me to leverage sudo in my user shell without having

[Solved] Re: [gentoo-user] Re: bash upgrading problem

2019-01-22 Thread Jacques Montier
Le lun. 21 janv. 2019 à 21:38, Nikos Chantziaras a écrit : > On 21/01/2019 20:25, Jacques Montier wrote: > > Le lun. 21 janv. 2019 à 19:04, Nikos Chantziaras > <mailto:rea...@gmail.com>> a écrit : > > > > I can't see why "emerge -uv bash" wou

Re: [gentoo-user] Rooted/compromised Gentoo, seeking advice

2010-08-11 Thread Alan McKinnon
On Wednesday 11 August 2010 18:58:02 Stroller wrote: > On 10 Aug 2010, at 19:50, Alan McKinnon wrote: > > ... The major threat by analysis on a workstation is stepping away > > for a > > leak and forgetting to lock the screen. sudo is adequate protection > > against >

[gentoo-user] Re: X programs as root

2010-09-24 Thread Nikos Chantziaras
On 09/23/2010 04:18 AM, Dale wrote: Nikos Chantziaras wrote: On 09/22/2010 09:48 PM, Andrey Vul wrote: When I launch X programs via sudo, I get the following: $sudo gui-admin No protocol specified gui-admin: cannot connect to X server :0 ( Assume gui-admin is an X program ) But (gk|kde)su

RE: [gentoo-user] sudo requires password twice

2006-06-11 Thread Daevid Vincent
; To: gentoo-user@lists.gentoo.org > Subject: [gentoo-user] sudo requires password twice > > I recently did an update world and had that 'pam'/'shadow' issue. > Followed these pages: > http://planet.gentoo.org/developers/flameeyes/2006/03/19/the_s > hadow_and_pam

Re: [gentoo-user] Root can't write to files owned by others?

2022-03-09 Thread Peter Böhm
Rainer, using sudo does not makes you a root user. To become a root user you have to switch with "su -" (and login with root password). Sudo has its own configuration file. If you can do something with sudo on other systems means there is a different configuration for sudo. Check

Re: [gentoo-user] Am I wrong?..

2009-10-02 Thread Sebastian Beßler
c involved. > > Sebastian, I already fixed the problem for my local host. But I know > other users have same problem. That's strange for me that you first > login as root to use visudo program. What is the matter of having sudo > then? Maybe you should READ what people write BE

Re: [gentoo-user] sudo echo cannot write to /etc/ files ?

2005-07-06 Thread Richard Fish
Holly Bostick wrote: >>I don't just give myself blanket permissions to sudo to all commands; I >>made a Cmd_Alias group which includes a lot of utility apps. And, like >>many of you, I included emerge in this group. >> > >Christoph Gysin schreef: > &g

Re: [gentoo-user] Allow non root users to edit files owned by root?

2011-12-20 Thread Michael Mol
On Tue, Dec 20, 2011 at 10:04 AM, Tanstaafl wrote: > Hi all, > > I'm guessing this is a sudo question, but I'm unfamiliar with the nuances of > sudo (never had to use it before). > > I have a new hosted VM server that I want to allow a user to be able to edit > f

Re: [gentoo-user] gentoo boot content in wrong partition

2024-05-27 Thread Jude DaShiell
gentoo > > environment to install the gentoo system. I started with stage3 and chose > > openrc and went down that path. > > > > #!/usr/bin/bash > > # file: sgentoo.sh - setup gentoo mounts > > echo "once disk setup from gentoo handbook is complete" &

Re: [gentoo-user] Update to /etc/sudoers disables wheel users!!!

2022-10-26 Thread Grant Taylor
On 10/26/22 12:31 AM, Walter Dnes wrote: My regular user has script "settime" in ${HOME}/bin #!/bin/bash date /usr/bin/sudo /usr/bin/rdate -nsv ca.pool.ntp.org /usr/bin/sudo /sbin/hwclock --systohc date /etc/sudoers.d/001 has, amongst other things, two lines... waltdnes x89

[gentoo-user] OT - sudo doesn't do echo

2005-04-08 Thread Bill Roberts
I've started using sudo in preference to su'ing, but I've found that "echo" doesn't seem to work with sudo. When I: $ sudo echo something >> /etc/portage/package.keywords -/bin/bash: /etc/portage/package.keywords: Permission denied I look at

  1   2   3   4   5   6   7   8   9   10   >