Berkeley CSUA MOTD:Entry 18458
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/07/09 [General] UID:1000 Activity:popular
7/9     

2000/6/13-14 [Computer/SW/Unix] UID:18458 Activity:moderate
6/13    Is there a way to restrict the use of a command so that you must
        be using ssh or logged in from console in order to execute it?
        For example, I want to ensure that nobody uses sudo while using
        telnet or rlogin.
        \_ no.
           \_ This is UNIX. If the request is reasonable and especially
              if is something that a lot of people might want, the answer
              is always Yes. And in fact, it's probably already been setup.
              if its something that a lot of people might want, the answer
              is always Yes. And if so, it's probably already been done.
        \_ Yes.  Wrap the command.  In the wrapper make sure whatever your
           conditions are are true before running the command.  Or just
           disable crap like telnet and rlogin which no one should be using
           anyway.
                \- try something like: --psb
                if ($?SSH_TTY && -e ~/.ssh.init)        source  ~/.ssh.init
                echo -n ' .ssh.init'
                set prompt="%SSSH%s-%m{%h}[%~]%% "
                alias emacs emacs -nw
2025/07/09 [General] UID:1000 Activity:popular
7/9     

You may also be interested in these entries...
2013/10/24-11/21 [Computer/SW/Unix] UID:54749 Activity:nil
9/18    -------------------------
        < Less wine, more sudo. >
        -------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
	...
2011/7/30-8/10 [Computer/SW/Languages/Misc] UID:54148 Activity:nil 66%like:54150
7/29    Happy Sysadmin Day
        \_ our "sysadmin" today deleted /home. When we asked her why
           she said she didn't do it. When I checked the sudo logs,
           I found these two commands in order:
               COMMAND=/bin/rm -r /home testuser
               COMMAND=/bin/rm -r /home/testuser
	...
2010/8/23-9/7 [Computer/SW/OS/Windows] UID:53932 Activity:low
9/21    are you guys really all using win7 in some way now?
        \_ Yes.  In my company, we have upgraded all our machines for
           development, QA and other office use (HR, Finance, Receptions, etc.)
           from WinXP to Win7 a few months ago.  Our products now primarily
           support Win7/Win2008 and secondarily support WinXP/Win2003.
           \_ Any weird gotchas support-wise?
	...
2009/4/22-28 [Computer/SW/Security] UID:52894 Activity:nil
4/22    ok, here's a little networking puzzler. I haven't been able to access
        youtube for a couple weeks. Couldn't figure out why. Happened on all
        browsers. traceroute did weird stuff and then timed out. Finally I
        got so frustrated I setup firefox to ssh tunnel through soda.csua,
        which worked great. Then, I kill the ssh proc, quit FF, and now,
        I can access youtube just fine from any browser. wtf? any
	...
2009/1/5-8 [Computer/SW/Unix] UID:52313 Activity:kinda low
1/3     no hurry but do you know of:
        $ chsh
        Password:
        Enter the new value, or press return for the default
         Login Shell [/usr/local/bin/bash]: /bin/zsh
        failed: Insufficient access
	...
2008/8/5-10 [Computer/Networking] UID:50788 Activity:nil
8/5     It looks like my company has started blocking HTTPS tunneling.
        I used to do this by tunneling SSH through the HTTP/HTTPS proxy
        server, but this seems to have stopped working. Does anyone know
        how the implementation of tunneling detection works, and whether
        there are widely available implementations? We run a bunch of MS
        stuff, so I imagine we're running an MS proxy server or something.
	...
2008/7/29-8/5 [Computer/SW/OS/Linux] UID:50715 Activity:nil
7/29    Is there a verbose option for shutdown in RedHat Linux? I'd really
        like to see the messages being generated without have to 'tail
        /var/log/messages' over and over.
        \_ stick this in your .bashrc
           "alias mtail="sudo tail -F --retry /var/log/messages"
           and do it in another window after you type shutdown
	...
2007/9/10 [Computer/SW/Languages/Perl] UID:47986 Activity:low
9/10    Hi.  I'm running a package based linux distro.  Should
        I install perl CPAN modules through the provided packages,
        or through sudo cpan> install modulename etc ?
        Opinions?
        \_ Depends on the package system you're using, you may have to
           deal with both.  I had an experience where I installed via
	...
2006/7/20-22 [Computer/SW/Mail] UID:43747 Activity:low
7/20    How can I get IMAP over SSL to work (I'm using Mail.app)?
        I've set the port to 465, checked SSL, set auth to Password,
        and entered my username and password. I don't get an error but my
        messages don't get delivered. TIA.
        \_ derrr, corrected, I meant SMTP (outbound).
        \_ 993/tcp  open  imaps
	...