Berkeley CSUA MOTD:Entry 16812
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/24 [General] UID:1000 Activity:popular
5/24    

1999/11/2-4 [Computer/SW/Unix/WindowManager, Computer/SW/Unix] UID:16812 Activity:kinda low
11/1    Does Redhat not allow for .login and .cshrc files in the user
        directory to be executed automagically?
        \_ No it works fine if you use it properly.  (Are you sure your
           shell is csh or tcsh?  Are they owned by the user?)
           \_ It works fine from a virtual console, but for some reason when
              you log in at runlevel 5 your .login isn't sourced.  Not sure if
              this is from gdm, gnome, or what.  If you find out let me know;
              I got bored looking for the answer. --mogul
              \_ When you login in at runlevel 5 it runs your .profile or
                 your autoexec or some such file depending on your window
                 manager.  You can call your .login from there.  Also when
                 you start a xterm by clicking on an icon your window
                 manager is probably not starting the xterm with the right
                 options.  If you want the xterm to be a "login shell"
                 and source .login you need to do xterm -ls or xterm +ls
                 (I don't remember which). Hope that helps. --emin
              \_ Solaris 7/CDE is good about this because it does source
                 the .login when you login; and xterms that you create
                 don't re-source the .login but do inherit env vars.
                 Why Linux/KDE doesn't do it automagically I'm wondering also.
                 \_ You know why.
                    \_ yes, i do
                        \_ Then let's leave it at that before the fanatics
                           'get it' and go balistic and wipe the motd or
                           something.
2025/05/24 [General] UID:1000 Activity:popular
5/24    

You may also be interested in these entries...
2012/9/20-11/7 [Computer/SW/Unix, Finance/Investment] UID:54482 Activity:nil
9/20    How do I change my shell? chsh says "Cannot change ID to root."
        \_ /usr/bin/chsh does not have the SUID permission set. Without
           being set, it does not successfully change a user's shell.
           Typical newbie sys admin (on soda)
           \_ Actually, it does: -rwsr-xr-x 1 root root 37552 Feb 15  2011 /usr/bin/chsh
	...
2012/9/24-11/7 [Computer/SW/Languages, Computer/SW/Unix] UID:54484 Activity:nil
9/24    How come changing my shell using ldapmodify (chsh doesn't work) doesn't
        work either? ldapsearch and getent show the new shell but I still get
        the old shell on login.
        \_ Scratch that, it magically took my new shell now. WTF?
           \_ probably nscd(8)
	...
2012/4/27-6/4 [Computer/SW/Languages/Misc, Computer/SW/Unix] UID:54372 Activity:nil
4/27    I wrote a little shell script to collect iostat data:
        #!/bin/bash
        DATE=`date +%m%d`
        DATADIR=/var/tmp/user
        OUTPUTFILE=$DATADIR/$DATE.out
        while true
	...
2011/10/26-12/6 [Computer/SW/Unix] UID:54202 Activity:nil
10/24  What's an easy way to see if say column 3 of a file matches a list of
       expressions in a file? Basically I want to combine "grep -f <file>"
       to store the patterns and awk's $3 ~ /(AAA|BBB|CCC)/ ... I realize
       I can do this with "egrep -f " and use regexp instead of strings, but
       was wondering if there was some magic way to do this.
       \_ UNIX has no magic. Make a shell script to produce the ask or egrep
	...
2011/5/19-7/30 [Computer/SW/Security] UID:54110 Activity:nil
5/19    Uh, is anyone still using this? Please mark here if you post and
        haven't added this yet. I'll start:
        \_ person k
        \_ ausman, I check in about once a week.
        \_ erikred, twice a week or so.
        \_ mehlhaff, I login when I actually own my home directory instead of
	...
2011/5/19-7/13 [Computer/SW/Languages/Misc] UID:54115 Activity:nil
5/19    If script A runs, and calls script B ..... is it possible for me to exit\
        script A based on results of script B and not continue?
        \_ assume any shell
        \_ Yes.
           \_ without passing the result to some stupid temp file?
              \_ It sounds like you want "scriptb || exit", which will run
	...
2009/10/1-21 [Computer/SW/WWW/Browsers] UID:53417 Activity:moderate
10/1    I am thinking of installing firefox on soda under my home directory.
        Will this make me a hozer?
        \_ Possibly. I wonder if we should have another VM for that...btw,
           I remember someone saying they're glad we're not on FreeBSD
           anymore, but last I checked, a bunch of our stuff is on FreeBSD,
           but our login server is not.
	...