Tangental And OT: Commercial Support For 'sudo'

2012-08-24 Thread Tim Daneliuk
Please forgive the OTishness of this, but I'm hoping some of my fellows in the large data center space may have a hint or two here ... I am working with a firm that needs to run sudo in a variety of OS environments. A few of these - noteably IBM AIX - do not provide vendor support and legal

Re: Tangental And OT: Commercial Support For 'sudo'

2012-08-24 Thread Julian H. Stacey
Hi, Tim Daneliuk wrote: Please forgive the OTishness of this, but I'm hoping some of my fellows in the large data center space may have a hint or two here ... I am working with a firm that needs to run sudo in a variety of OS environments. A few of these - noteably IBM AIX - do not provide

Re: make install fails for /usr/ports/security/sudo after downgrade from 9.0-R to 8-STABLE

2012-03-03 Thread ill...@gmail.com
installed X, icewm, windowmaker, firefox36, thunderbird, gimp and a few others. I think I've eliminated all the cruft from 9.0. However, I can't build sudo (or screen) and I can't work out why. Here is the error: # make distclean clean install ===  Cleaning for sudo-1.8.4 ===  Deleting distfiles

Re: make install fails for /usr/ports/security/sudo after downgrade from 9.0-R to 8-STABLE

2012-03-03 Thread FreeBSD Mailing Lists
On 03/03/12 12:31, ill...@gmail.com wrote: Stale header files in /usr/include maybe? Hi, Yes that's it. It seems utmp.h got changed to utmpx.h between 8.2 and 9.0. Fixed by csup of 9.0-R and doing the buildworld buildkernel etc. thanks, -- freebsd at growveg dot net

Re: make install fails for /usr/ports/security/sudo after downgrade from 9.0-R to 8-STABLE

2012-03-03 Thread ill...@gmail.com
On 3 March 2012 14:43, FreeBSD Mailing Lists free...@growveg.net wrote: On 03/03/12 12:31, ill...@gmail.com wrote: Stale header files in /usr/include maybe? Hi, Yes that's it. It seems utmp.h got changed to utmpx.h between 8.2 and 9.0. Fixed by csup of 9.0-R and doing the buildworld

Re: make install fails for /usr/ports/security/sudo after downgrade from 9.0-R to 8-STABLE

2012-03-03 Thread John
On 04/03/2012 04:36, ill...@gmail.com wrote: Hmm, I would think that merely removing the offending file and copying the correct one from /usr/obj/usr/src/tmp/usr/include/ would suffice. I dunno, I don't think so. Why would it not be installed in the downgrade process? Also, the filenames

make install fails for /usr/ports/security/sudo after downgrade from 9.0-R to 8-STABLE

2012-03-02 Thread FreeBSD Mailing Lists
eliminated all the cruft from 9.0. However, I can't build sudo (or screen) and I can't work out why. Here is the error: # make distclean clean install === Cleaning for sudo-1.8.4 === Deleting distfiles for sudo-1.8.4 === License sudo accepted by the user === Found saved configuration for sudo

Re: sudo log messages

2011-12-04 Thread Polytropon
On Sun, 4 Dec 2011 05:34:19 +0200, Коньков Евгений wrote: hi I add line to syslog.conf and killall -HUP syslogd Tell me please how to stop sudo to food /var/log/messages? There is a short block for that functionality in the file /usr/local/etc/sudo.conf.sample which you can create your

Re: sudo log messages

2011-12-04 Thread Polytropon
On Sun, 4 Dec 2011 05:34:19 +0200, Коньков Евгений wrote: Tell me please how to stop sudo to food /var/log/messages? ADDITION: Of course I meant /usr/local/etc/sutoers, NOT sudo.conf. Instead of logging via syslog (to /var/log/messages), why not use a specific log file for sudo? Add those lines

Re[2]: sudo log messages

2011-12-04 Thread Коньков Евгений
Здравствуйте, Polytropon. Вы писали 4 декабря 2011 г., 15:41:45: P On Sun, 4 Dec 2011 05:34:19 +0200, Коньков Евгений wrote: Tell me please how to stop sudo to food /var/log/messages? P ADDITION: Of course I meant /usr/local/etc/sutoers, P NOT sudo.conf. P Instead of logging via syslog

Re: sudo log messages

2011-12-04 Thread Carl Johnson
Коньков Евгений kes-...@yandex.ru writes: Здравствуйте, Polytropon. Вы писали 4 декабря 2011 г., 15:41:45: P On Sun, 4 Dec 2011 05:34:19 +0200, Коньков Евгений wrote: Tell me please how to stop sudo to food /var/log/messages? P ADDITION: Of course I meant /usr/local/etc/sutoers, P

sudo log messages

2011-12-03 Thread Коньков Евгений
hi I add line to syslog.conf and killall -HUP syslogd Tell me please how to stop sudo to food /var/log/messages? -- С уважением, Коньков mailto:kes-...@yandex.ru ___ freebsd-questions@freebsd.org mailing list http

Sudo 1.7.4 and AD groups

2011-01-11 Thread Robert Archer
Hi FreeBSD Folks, I'm using Samba 3.5.6 to authenticate logins and manage access on FreeBSD 8.1. With Sudo 1.7.2, I was able to use Active Directory groups in sudoers(5), but this doesn't seem to work in 1.7.4. Versions: $ uname -a FreeBSD cis-mvl.ml.unisa.edu.au 8.1-RELEASE-p2 FreeBSD 8.1

Re: sudo anomaly

2010-09-27 Thread perryh
Steven Friedrich free...@insightbb.com wrote: ... tried sudo mail. I got root's mailbox nd I deleted all but two emails. When I q(uit) mail, it said it saved 2 messages in mbox. But when I try to go back in it says I don't have any mail. There is no root directory in /var/mail. Did sudo

Re: sudo anomaly

2010-09-27 Thread Steven Friedrich
On Sunday 26 September 2010 11:21:50 pm you wrote: From free...@insightbb.com Sun Sep 26 18:14:09 2010 From: Steven Friedrich free...@insightbb.com To: Robert Bonomi bon...@mail.r-bonomi.com Subject: Re: sudo anomaly Date: Sun, 26 Sep 2010 19:16:00 -0400 On Sunday 26 September 2010

sudo anomaly

2010-09-26 Thread Steven Friedrich
, and tried sudo mail. I got root's mailbox nd I deleted all but two emails. When I q(uit) mail, it said it saved 2 messages in mbox. But when I try to go back in it says I don't have any mail. There is no root directory in /var/mail. Did sudo lose my mbox? Can anyone verify this anomaly

Re: sudo -K/-k ineffective

2010-08-01 Thread Lowell Gilbert
me gurpreet...@gmail.com writes: Hi, Upon doing sudo some-command as a normal user (non-root), sudo asks for password only once, subsequent invocations of sudo doesn't ask for password - even though I do sudo -k or sudo -K in between. Although sudo starts asking for password after the time

Re: sudo -K/-k ineffective

2010-08-01 Thread Michael Grünewald
Hi, Lowell Gilbert wrote: megurpreet...@gmail.com writes: Upon doing sudosome-command as a normal user (non-root), sudo asks for password only once, subsequent invocations of sudo doesn't ask for password - even though I do sudo -k or sudo -K in between. Although sudo starts asking

Re: sudo -K/-k ineffective

2010-08-01 Thread Gurpreet Singh
I don't see anything suspicious in the timestamp directory: foo% sudo ls -l /var/run/sudo/ total 12 drwx-- 2 root wheel 512 Aug 2 01:06 gurpreet drwx-- 2 root wheel 512 Aug 2 00:37 other drwx-- 2 root wheel 512 Aug 2 00:37 third foo% sudo ls -l /var/run/sudo/gurpreet

Re: sudo -K/-k ineffective

2010-07-31 Thread Chris Rees
by design. There's a timeout that you can set, ... Chris, That is not by design. sudo -K should remove the timestamp -- sudo -K The -K (sure kill) option is like -k except that it removes the user's time stamp entirely and may not be used

sudo -K/-k ineffective

2010-07-30 Thread me
Hi, Upon doing sudo some-command as a normal user (non-root), sudo asks for password only once, subsequent invocations of sudo doesn't ask for password - even though I do sudo -k or sudo -K in between. Although sudo starts asking for password after the time stamp expiry. in other words: % sudo

Re: sudo -K/-k ineffective

2010-07-30 Thread Chris Rees
It's by design. There's a timeout that you can set, try man sudo. Chris Sorry for top-posting, Android won't let me quote, but K-9 can't yet do threading. On 30 Jul 2010 21:43, me gurpreet...@gmail.com wrote: Hi, Upon doing sudo some-command as a normal user (non-root), sudo asks

Re: sudo -K/-k ineffective

2010-07-30 Thread Michael Toth
On 07/30/2010 06:00 PM, Chris Rees wrote: It's by design. There's a timeout that you can set, try man sudo. Chris Chris, That is not by design. sudo -K should remove the timestamp -- sudo -K The -K (sure kill) option is like -k except that it removes

sudo last login message and how to turn it off FreeBSD8.0

2010-06-24 Thread Martin McCormick
I have actually seen this on some FreeBSD6.3 systems and thought it was a querk. It may still be a querk but it has started again on an 8.0 system. I think I am doing something to cause it, but I am not sure. When one executes a sudo command, I get a last login message which reflects

Re: sudo last login message and how to turn it off FreeBSD8.0

2010-06-24 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 24/06/2010 19:41:04, Martin McCormick wrote: When one executes a sudo command, I get a last login message which reflects the last time I ran sudo. Example: Any ideas as to what to look at? /usr/local/etc/pam.d/sudo probably

Re: sudo last login message and how to turn it off FreeBSD8.0

2010-06-24 Thread Anh Ky Huynh
. When one executes a sudo command, I get a last login message which reflects the last time I ran sudo. Example: [mar...@pilot ~]$ sudo whoami Password: Last login: Thu Jun 24 13:07:20 from pilot.it.okstate root There is another FreeBSD8.0 system here that has not yet

Upgrading sudo to 1.7.2.2 doesn't work with OPIE

2010-02-04 Thread Kirk Strauser
I'm using FreeBSD 8-STABLE from yesterday. I had sudo 1.6.9.20 installed and used portupgrade to upgrade it to 1.7.2.2. At this point, it stopped working: $ sudo -v otp-md5 [something] Password: Sorry, try again. otp-md5 [something] Password: Sorry, try again. otp-md5 [something] Password

Re: Upgrading sudo to 1.7.2.2 doesn't work with OPIE

2010-02-04 Thread Kirk Strauser
On 02/04/2010 10:26 AM, Kirk Strauser wrote: Any idea why that may be or how I could troubleshoot it, short of bisecting the sudo releases until I find the culprit? Eh, did it anyway. The problem was with a change added between 1.7.2p1 and 1.7.2p2. This patch fixes it: --- auth/pam.c.orig

sudo script not executing

2009-09-11 Thread bsd
Hello, I have an sh script that is called by the www process which has a shell that defaults to /sbin/nologin I have configured the sudoers file with these settings: www ALL=(www) NOPASSWD: /usr/local/bin/postfixadmin-domain- postdeletion.sh And It does not seem to be able to execute…

Re: sudo script not executing

2009-09-11 Thread Chris Cowart
to sudo to run as that account. Did you mean to setup the rule for the postfix user? Or a postfix target account? That said, I think what you typed should have worked. You shouldn't have seen www is not allowed to execute ... as www, because your sudoers file says otherwise. Assuming your account

Re: 'alias' + sudo

2009-09-04 Thread George Davidovich
On Thu, Sep 03, 2009 at 08:10:36PM -0400, Jerry wrote: On Fri, 4 Sep 2009 01:34:05 +0200 Mel Flynn wrote: alias spico='/usr/local/bin/sudo pico -m' and be done with it. Instead of an extra alias, why not export $VISUAL or $EDITOR, and rely on sudoedit(8)? That is what I am currently doing

Re: 'alias' + sudo

2009-09-04 Thread Randy Belk
On Fri, Sep 4, 2009 at 10:50 AM, George Davidovichfree...@optimis.net wrote: On Thu, Sep 03, 2009 at 08:10:36PM -0400, Jerry wrote: On Fri, 4 Sep 2009 01:34:05 +0200 Mel Flynn wrote: alias spico='/usr/local/bin/sudo pico -m' and be done with it. Instead of an extra alias, why not export

Re: 'alias' + sudo

2009-09-03 Thread Mel Flynn
On Wednesday 02 September 2009 13:26:59 Jerry wrote: I have set up several 'alias' definitions in my .bashrc file. They are honored when run as either a regular user or as root. However, when I prefix a command with 'sudo', the alias is no longer honored. In other words, the actual command

Re: 'alias' + sudo

2009-09-03 Thread Jerry
On Fri, 4 Sep 2009 01:34:05 +0200 Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net wrote: alias spico='/usr/local/bin/sudo pico -m' and be done with it. That is what I am currently doing; however,there are other commands that I want to use that are not available when used via sudo

Re: 'alias' + sudo

2009-09-03 Thread Mel Flynn
On Friday 04 September 2009 02:10:36 Jerry wrote: On Fri, 4 Sep 2009 01:34:05 +0200 Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net wrote: alias spico='/usr/local/bin/sudo pico -m' and be done with it. That is what I am currently doing; however,there are other commands that I want

'alias' + sudo

2009-09-02 Thread Jerry
I have set up several 'alias' definitions in my .bashrc file. They are honored when run as either a regular user or as root. However, when I prefix a command with 'sudo', the alias is no longer honored. In other words, the actual command is run;however, any flags that I was passing to it via

Re: 'alias' + sudo

2009-09-02 Thread Tim Judd
On 9/2/09, Jerry ges...@yahoo.com wrote: I have set up several 'alias' definitions in my .bashrc file. They are honored when run as either a regular user or as root. However, when I prefix a command with 'sudo', the alias is no longer honored. In other words, the actual command is run;however

Re: 'alias' + sudo

2009-09-02 Thread Jerry
On Wed, 2 Sep 2009 13:06:28 -0600 Tim Judd taj...@gmail.com wrote: [snip] Because sudo calls the binary, via SUID on sudo. It doesn't pay attention to user profiles or rc files (like .bashrc). I don't use sudo, so I can't recommend past that. In other words, sudo is not compatible

Re: 'alias' + sudo

2009-09-02 Thread Dan Nelson
In the last episode (Sep 02), Jerry said: On Wed, 2 Sep 2009 13:06:28 -0600 Tim Judd taj...@gmail.com wrote: Because sudo calls the binary, via SUID on sudo. It doesn't pay attention to user profiles or rc files (like .bashrc). I don't use sudo, so I can't recommend past

Re: 'alias' + sudo

2009-09-02 Thread Polytropon
On Wed, 2 Sep 2009 15:06:48 -0500, Dan Nelson dnel...@allantgroup.com wrote: sudo does not run root's shell at all; it directly runs whatever is given it on the commandline. Another idea would to be to call sudo with the desired shell as argument (in order to inherit the aliases), followed

Re: weird permissions on directories when installing ports through sudo

2009-02-25 Thread Eric Schuele
On 02/19/2009 15:56, Aleksandr Miroslav wrote: For the longest time, I have installed ports via the sudo make install or sudo portupgrade or sudo portinstall method and never had a problem. This seems to have jumped up and bitten me on the arse as well. I believe the problem lies herein: http

Re: weird permissions on directories when installing ports through sudo

2009-02-25 Thread Brian A. Seklecki
lowering the umask of the person running sudo. This had the effect of truly screwing up many installed ports for me Maybe try sudo -H -u root [command] NetBSD Pkgsrc is nice in this respect because it has sudo(8) integration in the MKs. ~BAS signature.asc Description

Re: weird permissions on directories when installing ports through sudo

2009-02-25 Thread Eric Schuele
On 02/25/2009 11:49, Brian A. Seklecki wrote: lowering the umask of the person running sudo. This had the effect of truly screwing up many installed ports for me Maybe try sudo -H -u root [command] NetBSD Pkgsrc is nice in this respect because it has sudo(8) integration in the MKs. ~BAS

Re: weird permissions on directories when installing ports through sudo

2009-02-25 Thread Brian A. Seklecki
, created the local brouhaha with groups credential crashing. Perhaps next time a -dev extension of the port should roll for a few months (6-9), especially given the history of sudo releng. ~BAS signature.asc Description: This is a digitally signed message part

sudo, LDAP, and Kerberos

2008-11-07 Thread Darek M.
I'm setting up a centralized Kerberos/LDAP authentication system and trying to get sudo to use a) Kerberos for the password, and b) LDAP for a non-local user's group. Locally on a client system /etc/sudoers specifies %sysadmin to be able to sudo to root. I don't need to move sudoers to LDAP

sudo multiple commands at once without shell script

2008-10-25 Thread Kelly Jones
How do I run multiple sudo commands at once? This fails because the semicolon ends the whole sudo command: sudo whoami; whoami root user This confuses tcsh: monica:~ sudo ( whoami ; whoami ) Badly placed ()'s. I could obviously write a shell script or something or do: sudo whoami; sudo

Re: sudo multiple commands at once without shell script

2008-10-25 Thread perryh
How do I run multiple sudo commands at once? This fails because the semicolon ends the whole sudo command: sudo whoami; whoami root user This confuses tcsh: monica:~ sudo ( whoami ; whoami ) Badly placed ()'s. Supposing sudo spawns a shell, something like ~ sudo whoami \; whoami

Re: sudo multiple commands at once without shell script

2008-10-25 Thread Tom Marchand
This works for me: sudo sh -c whoami;whoami On Oct 25, 2008, at 9:11 PM, Kelly Jones wrote: How do I run multiple sudo commands at once? This fails because the semicolon ends the whole sudo command: sudo whoami; whoami root user This confuses tcsh: monica:~ sudo ( whoami ; whoami

Sudo,pam,and winbindd issue

2008-08-20 Thread David Wassman
All, I am having a wierd problem with sudo on a FreeBSD 7 system that is joined to AD domain through Samba. When I sudo a command, when prompted for a password, any password including a blank one works. Obviously a security issue. Here are the config files: /usr/local/etc/sudoers root

Re: cutecom requires sudo to work, but minicom works without - permissions?

2008-04-20 Thread Vincent Barus
up and hit the serial port just fine, but cutecom can't open it except with sudo. I tried tweaking devfs.conf (as well as a straight chmod on /dev/cuad0), and it doesn't seem to rectify the problem. I've also got several linux ports that hit usb devices via libusb that won't connect

Re: cutecom requires sudo to work, but minicom works without - permissions?

2008-04-17 Thread Ruben de Groot
with sudo. I tried tweaking devfs.conf (as well as a straight chmod on /dev/cuad0), and it doesn't seem to rectify the problem. I've also got several linux ports that hit usb devices via libusb that won't connect without sudo - obviously, I'd like not to have to run user-type apps with sudo on my

Re: cutecom requires sudo to work, but minicom works without - permissions?

2008-04-15 Thread Derek Ragona
At 07:39 PM 4/14/2008, Steve Franks wrote: I have two terminal programs - cutecom and minicom, both built from ports with no tweaks. Minicom will fire up and hit the serial port just fine, but cutecom can't open it except with sudo. I tried tweaking devfs.conf (as well as a straight chmod

cutecom requires sudo to work, but minicom works without - permissions?

2008-04-14 Thread Steve Franks
I have two terminal programs - cutecom and minicom, both built from ports with no tweaks. Minicom will fire up and hit the serial port just fine, but cutecom can't open it except with sudo. I tried tweaking devfs.conf (as well as a straight chmod on /dev/cuad0), and it doesn't seem to rectify

Sudo Commands on New 6.2 System Cause Last Login Message.

2008-04-03 Thread Martin McCormick
I noticed that every sudo command I issue is accompanied by a Last login message. 25testokcns root $ls .hushlogin ls: .hushlogin: No such file or directory 26testokcns root $sudo touch .hushlogin Last login: Thu Apr 3 11:38:24 from testokcns.osuokc 27testokcns root $sudo date Last login

Re: Sudo Commands on New 6.2 System Cause Last Login Message.

2008-04-03 Thread Steven Friedrich
On Thursday 03 April 2008 01:06:37 pm Martin McCormick wrote: I noticed that every sudo command I issue is accompanied by a Last login message. 25testokcns root $ls .hushlogin ls: .hushlogin: No such file or directory 26testokcns root $sudo touch .hushlogin Last login: Thu Apr 3 11

Re: Sudo Commands on New 6.2 System Cause Last Login Message.

2008-04-03 Thread Martin McCormick
Steven Friedrich writes: 26testokcns root $sudo touch .hushlogin Well, it IS odd that you're using sudo when logged in as root 8o) I was cd'd to the /root directory, but was logged in as me. It kind of got me there for a second, but notice the $ in the prompt. Interestingly

Re: Sudo Commands on New 6.2 System Cause Last Login Message.

2008-04-03 Thread David Robillard
The commands always work but I would rather not get that message each time. Am I missing something obvious? A quick google search will show you that it's the ${LOCALBASE}/etc/pam.d/sudo file which is the root of your problem. It's pam_lastlog(8) which makes the message. If you don't need

Re: Sudo Commands on New 6.2 System Cause Last Login Message.

2008-04-03 Thread Tom McLaughlin
On Thu, 2008-04-03 at 12:06 -0500, Martin McCormick wrote: I noticed that every sudo command I issue is accompanied by a Last login message. 25testokcns root $ls .hushlogin ls: .hushlogin: No such file or directory 26testokcns root $sudo touch .hushlogin Last login: Thu Apr 3 11:38

how to write the standard output to an unwritable with sudo?

2008-03-29 Thread lveax
$ whoami v $ ll a -rw-r--r-- 1 root v 0 Mar 30 10:02 a $ sudo cat a a: Permission denied. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: how to write the standard output to an unwritable with sudo?

2008-03-29 Thread Giorgos Keramidas
On Sun, 30 Mar 2008 10:13:02 +0800, lveax [EMAIL PROTECTED] wrote: $ whoami v $ ll a -rw-r--r-- 1 root v 0 Mar 30 10:02 a $ sudo cat a a: Permission denied. You have to redirect output 'within' sudo, so try using: sudo sh -c 'cat unwritable

sudo mkextcache?

2008-03-23 Thread Jeffrey Ellis
Hi-- I¹m trying to make a bootable clone of my startup drive, and read Mike Bombich¹s instructions on how to do this. He includes the following line as the last step in the process: Finally, recreate the kernel extension cache for the CD: sudo mkextcache -t ppc -d \ /Volumes/Rescue/System

Re: sudo mkextcache?

2008-03-23 Thread Tim Judd
Jeffrey Ellis wrote: Hi-- I¹m trying to make a bootable clone of my startup drive, and read Mike Bombich¹s instructions on how to do this. He includes the following line as the last step in the process: Finally, recreate the kernel extension cache for the CD: sudo mkextcache -t ppc -d

Re: firefox only runs with 'sudo'

2008-02-01 Thread Bill Moran
In response to Steve Franks [EMAIL PROTECTED]: Don't get it. I installed firefox from the package at ftp4.us.freebsd.org like always (so I thought) but if I run 'firefox', I get a prompt back, and no firefox, but if I run it as sudo, it comes up fine. Where should I start fixing permissions

firefox only runs with 'sudo'

2008-02-01 Thread Steve Franks
Don't get it. I installed firefox from the package at ftp4.us.freebsd.org like always (so I thought) but if I run 'firefox', I get a prompt back, and no firefox, but if I run it as sudo, it comes up fine. Where should I start fixing permissions at, do you think? Steve

Re: sudo never asks me for a password

2007-12-03 Thread Tom McLaughlin
[EMAIL PROTECTED] wrote: On Fri, Nov 23, 2007 at 03:43:39PM -0800, Kamil Kisiel wrote: For some reason, on this particular FreeBSD machine, sudo never asks me for a password, even if I haven't logged in for days. I've been struggling with this problem for some time

Re: sudo never asks me for a password

2007-11-23 Thread Andy Harrison
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/23/07, Kamil Kisiel wrote: For some reason, on this particular FreeBSD machine, sudo never asks me for a password, even if I haven't logged in for days. I tried running sudo -k, sudo -K before trying it. I've even tried manually removing

Re: sudo never asks me for a password

2007-11-23 Thread Christopher Cowart
On Fri, Nov 23, 2007 at 03:43:39PM -0800, Kamil Kisiel wrote: For some reason, on this particular FreeBSD machine, sudo never asks me for a password, even if I haven't logged in for days. I've been struggling with this problem for some time but still haven't been able to find a solution. Any

Re: sudo never asks me for a password

2007-11-23 Thread Christopher Cowart
On Fri, Nov 23, 2007 at 07:09:36PM -0800, Kamil Kisiel wrote: On 11/23/07, Christopher Cowart [EMAIL PROTECTED] wrote: On Fri, Nov 23, 2007 at 03:43:39PM -0800, Kamil Kisiel wrote: For some reason, on this particular FreeBSD machine, sudo never asks me for a password, even if I haven't

Re: sudo never asks me for a password

2007-11-23 Thread Kamil Kisiel
-0800, Kamil Kisiel wrote: For some reason, on this particular FreeBSD machine, sudo never asks me for a password, even if I haven't logged in for days. I've been struggling with this problem for some time but still haven't been able to find a solution. Any ideas

Re: sudo never asks me for a password

2007-11-23 Thread Christopher Cowart
On Fri, Nov 23, 2007 at 08:01:23PM -0800, Kamil Kisiel wrote: Alright, maybe my impression of success was slightly premature. It seems that the problem now is that sudo doesn't like the pam_unix.so module for whatever reason. If I use the default sudo pam file, which simply includes all

Re: sudo never asks me for a password

2007-11-23 Thread Kamil Kisiel
FreeBSD machine, sudo never asks me for a password, even if I haven't logged in for days. I've been struggling with this problem for some time but still haven't been able to find a solution. Any ideas? Maybe something is misconfigured in your pam stack? Check /etc/pam.d/sudo

sudo never asks me for a password

2007-11-23 Thread Kamil Kisiel
For some reason, on this particular FreeBSD machine, sudo never asks me for a password, even if I haven't logged in for days. I tried running sudo -k, sudo -K before trying it. I've even tried manually removing /var/run/sudo. When I run sudo -l, I get: User kamil may run the following commands

Re: sudo never asks me for a password

2007-11-23 Thread Kamil Kisiel
On 11/23/07, Christopher Cowart [EMAIL PROTECTED] wrote: On Fri, Nov 23, 2007 at 03:43:39PM -0800, Kamil Kisiel wrote: For some reason, on this particular FreeBSD machine, sudo never asks me for a password, even if I haven't logged in for days. I've been struggling with this problem

Re: sudo doesn't log anything

2007-10-10 Thread Nicolas Letellier
Pieter de Goeje a écrit : Sudo by default logs with facility 'local2' and priority 'notice'. Neither one is specified in your syslog.conf. Yes, it fix my problem ! Thanks very much ! Nicolas -- Nicolas Letellier, administrateur systèmes Site personnel : http://nicoelro.net Curriculum

Re: sudo doesn't log anything

2007-10-10 Thread Brian A. Seklecki
On Wed, 2007-10-10 at 18:38 +0200, Nicolas Letellier wrote: Pieter de Goeje a écrit : Sudo by default logs with facility 'local2' and priority 'notice'. Neither one is specified in your syslog.conf. To set the facility in sudoer(5): Defaultssyslog=auth Or local0-7

Re: sudo doesn't log anything

2007-10-10 Thread [EMAIL PROTECTED]
On Tuesday 09 October 2007, Pieter de Goeje [EMAIL PROTECTED] wrote: (among other verbiage) It logs it's (sic) messages in /var/log/messages. Is this mentioned in the man page ? If nort, it should be! ___ freebsd-questions@freebsd.org mailing list

sudo doesn't log anything

2007-10-09 Thread Nicolas Letellier
Hello, In my FreeBSD 6.2, I use sudo for a user. However, I want know who has used sudo in my machine. But, sudo doesn't log anything. I have nothing about sudo in /var/log... Syslog log auth.* in /var/log/auth, but nothing about sudo... What's the problem ? Any ideas ? Thanks ! Nicolas

Re: sudo doesn't log anything

2007-10-09 Thread Pieter de Goeje
On Tuesday 09 October 2007, Nicolas Letellier wrote: Hello, In my FreeBSD 6.2, I use sudo for a user. However, I want know who has used sudo in my machine. But, sudo doesn't log anything. I have nothing about sudo in /var/log... Syslog log auth.* in /var/log/auth, but nothing about sudo

Re: sudo doesn't log anything

2007-10-09 Thread Nicolas Letellier
Hello, Thanks for your response. No, there is nothing about sudo in /var/log/messages (in anyone else file in /var/log). But i modified my /etc/syslog.conf. The problem could is this file ? I pastebin my file : http://pastebin.com/m35ceae32 What's the problem to log sudo informations

Re: sudo doesn't log anything

2007-10-09 Thread Pieter de Goeje
On Tuesday 09 October 2007, Nicolas Letellier wrote: Hello, Thanks for your response. No, there is nothing about sudo in /var/log/messages (in anyone else file in /var/log). But i modified my /etc/syslog.conf. The problem could is this file ? I pastebin my file : http://pastebin.com

Sudo clears the environment variable

2007-08-07 Thread Olivier Nicole
Hi, On a new system that I am installing, I found out that the new version of sudo version 1.6.9p3 clears the environment variables. It was not the case on previous version like version 1.6.8p12. I tried to understand what is the configuration to perform like it was before, I tried to add

Re: Sudo clears the environment variable

2007-08-07 Thread Olivier Nicole
env_reset now seems to be on by default. you could turn it off if you need to or fiddle with the env_keep and env_check lists. That's what I mean, how to turn it off. Olivier ___ freebsd-questions@freebsd.org mailing list

Re: Sudo clears the environment variable

2007-08-07 Thread Vince
Olivier Nicole wrote: Hi, On a new system that I am installing, I found out that the new version of sudo version 1.6.9p3 clears the environment variables. It was not the case on previous version like version 1.6.8p12. I tried to understand what is the configuration to perform like

Re: Sudo clears the environment variable

2007-08-07 Thread Vince
user basis. see /usr/local/share/doc/sudo/UPGRADE Vince Olivier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED

Re: Sudo clears the environment variable

2007-08-07 Thread [EMAIL PROTECTED]
On 07/08/07, Olivier Nicole [EMAIL PROTECTED] wrote: env_reset now seems to be on by default. you could turn it off if you need to or fiddle with the env_keep and env_check lists. That's what I mean, how to turn it off. I added the line Defaults !env_reset to sudoers. You might want to

Re: Sudo clears the environment variable

2007-08-07 Thread Arend P. van der Veen
[EMAIL PROTECTED] wrote: On 07/08/07, Olivier Nicole [EMAIL PROTECTED] wrote: env_reset now seems to be on by default. you could turn it off if you need to or fiddle with the env_keep and env_check lists. That's what I mean, how to turn it off. I added the line Defaults !env_reset to

Re: /libexec/ld-elf.so.1: Undefined symbol optifd referenced fromCOPY relocation in /bin/cp when installing sudo port SOLVED

2007-07-30 Thread Garrett Cooper
Posted At: Monday, July 30, 2007 8:37 AM Posted To: FreeBSD-Ports Conversation: /libexec/ld-elf.so.1: Undefined symbol optifd referenced fromCOPY relocation in /bin/cp when installing sudo port Subject: /libexec/ld-elf.so.1: Undefined symbol optifd referenced fromCOPY relocation in /bin/cp when

Re: /libexec/ld-elf.so.1: Undefined symbol optifd referenced fromCOPY relocation in /bin/cp when installing sudo port SOLVED

2007-07-30 Thread Garrett Cooper
Of FreeBSD-Ports Posted At: Monday, July 30, 2007 8:37 AM Posted To: FreeBSD-Ports Conversation: /libexec/ld-elf.so.1: Undefined symbol optifd referenced fromCOPY relocation in /bin/cp when installing sudo port Subject: /libexec/ld-elf.so.1: Undefined symbol optifd referenced fromCOPY relocation

sudo and env gotcha (or is it just me?)

2007-07-30 Thread [EMAIL PROTECTED]
After blithely upgrading everything else, I at- tempted rebuilding jdk15 and, crumbs! my nfs mounted /ports (4.7G) filled up and the build barfed although I have WRKDIRPREFIX set in /etc/csh.cshrc Barbara Streisand! I thought, what could be the prob-lem now? % cd /ports/java/jdk15 sudo make

Re: Remote Execution of sudo Command Hangs.

2007-07-28 Thread Martin McCormick
Christian Walther writes: Try using pseudo tty allocation with your ssh command, it's the -t option. So, use ssh -t remote.system.domain sudo dhcpreset as the command. That worked perfectly. If this doesn't work directly, you can even try several ts. I had best results with -ttt

Remote Execution of sudo Command Hangs.

2007-07-27 Thread Martin McCormick
We have 3 FreeBSD systems. One is trying to use ssh and sudo to run commands on two other systems. The remote command being executed is: ssh remote.system.domain sudo dhcpreset dhcpreset is an expect script most of which is shown here: spawn $env(SHELL) expect -exact \# send -- date\r

Re: Remote Execution of sudo Command Hangs.

2007-07-27 Thread Christian Walther
Hi Martin, On 27/07/07, Martin McCormick [EMAIL PROTECTED] wrote: We have 3 FreeBSD systems. One is trying to use ssh and sudo to run commands on two other systems. The remote command being executed is: ssh remote.system.domain sudo dhcpreset dhcpreset is an expect script most

Re: Should sudo be used?

2007-04-08 Thread Andrew Pantyukhin
On 4/7/07, Kevin Kinsey [EMAIL PROTECTED] wrote: Jerry McAllister wrote: Also, although telnet is a hole nowdays for logging in to a system with an id and password for the very reasons you have given, it still has a use. You can use it to easily poke at a port and check the response to

Re: Should sudo be used?

2007-04-06 Thread Alex Zbyslaw
Jerry McAllister wrote: I noticed one grammatical thing of question. In the first paragraph under Use ssh instead of Telnet or rsh/rlogin it says they should never be used to administrate a machine over a network, I think the word should be 'administer' instead of 'administrate'

Re: Should sudo be used?

2007-04-06 Thread Jerry McAllister
On Fri, Apr 06, 2007 at 12:08:04PM +0100, Alex Zbyslaw wrote: Jerry McAllister wrote: I noticed one grammatical thing of question. In the first paragraph under Use ssh instead of Telnet or rsh/rlogin it says they should never be used to administrate a machine over a network, I

Re: Should sudo be used?

2007-04-06 Thread Kevin Kinsey
Jerry McAllister wrote: On Thu, Apr 05, 2007 at 11:28:34AM -0500, Jeremy C. Reed wrote: On Thu, 5 Apr 2007, Kevin Kinsey wrote: I thought I might also mention a potential sudo-shortcoming. :-D See: http://bsdwiki.reedmedia.net/wiki/Recognize_basic_recommended_access_methods.html Where I

Re: Should sudo be used?

2007-04-05 Thread Pietro Cerutti
On 4/5/07, Schiz0 [EMAIL PROTECTED] wrote: True, if that was the case I'd use sudo. But I'm the only user on my systems that I'd trust with root access, so there's no point with my setup. [Please don't top post] Anyway, yes, I would say it depends on the situation, and it's even a matter

Re: Should sudo be used?

2007-04-05 Thread Schiz0
True, if that was the case I'd use sudo. But I'm the only user on my systems that I'd trust with root access, so there's no point with my setup. On 4/5/07, Pietro Cerutti [EMAIL PROTECTED] wrote: On 4/5/07, Schiz0 [EMAIL PROTECTED] wrote: I don't use sudo. I find it rather pointless. If I

Re: Should sudo be used?

2007-04-05 Thread Christian Walther
On 05/04/07, Schiz0 [EMAIL PROTECTED] wrote: [Moved answer to the bottom -- please don't use top post] On 4/5/07, Pietro Cerutti [EMAIL PROTECTED] wrote: On 4/5/07, Schiz0 [EMAIL PROTECTED] wrote: I don't use sudo. I find it rather pointless. If I need to do something as root, I use su

Re: Should sudo be used?

2007-04-05 Thread Schiz0
I don't use sudo. I find it rather pointless. If I need to do something as root, I use su to gain root privileges, then when I'm done, I exit and return to the original user. The user running su must be in the group wheel to be able to su to root. This is a simple yet convenient security system

  1   2   3   >