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

2002/11/13-14 [Computer/SW/Unix] UID:26530 Activity:very high
11/12   Unix / shell question.  I need to find *ALL* the files in a system
        which is owned by a particular user ID (i.e. my OWN user ID),
        how to do that?  I managed to find my own user ID by look at the
        /etc/passwd file (it is not shadowed), but I am not sure how to
        use "find" command to do what I want.
          (for those who are curious... my account at other places got
           screwed big time when the system admin decided to reassign
           user IDs on the existing accounts.  I end up having a lot of
           files couting against my quota than I actually owns... need
           to help the system admin to solve my problem!! :(  )
                \_ find / -local -mount -user $user
                 Or something close to that.  Note the -local and the -mount
                 are supposed to stop you from getting automounted file
                 systems.  (Automounting all the file systems available
                 from remote machines will piss off your sysadmin and take
                 longer.)  This command worth what you paid for it.  -ax
           \_ WTF?  Why did the so called sysadmin change UIDs?  As a sysadmin
              I object to you calling this person by the same title.
              \_ This can be done cleverly, elegantly, and cleanly, but
                 obviously this person's sysadmin was incompetent.  rsync
                 is a wonderful tool.
                 \_ It can be but there are few reasons to do so.  Someone this
                    stupid won't have a reason to change UIDs.
                    \_ Most obvious case, someone makes the decision to go
                       to centralized password administration.  the point
                       still stands, though, that to screw this up is a sign
                       of incompetence.
                    \_ Maybe the "stupid" sysadmin is taking over this
                       user's sorry-ass company and integrating it into
                       their current UID scheme and so what, the sysadmin
                       couldn't find every single file owned by this UID
                       on some lab/desktop machine, like you *could* or even
                       *would* considering the time-effort tradeoffs
                       Just speaking in general and obviously not for this
                       specific user, but the followups were just too
                       much broad clueless generalization.
                       \_ it's very easy to do this sort of resyncing if you
                          have half a clue.  the failure to catch all ownerships
                          falls squarely on the sysadmin, dude.  --sysadmin who
                          has had to do this recently (and flawlessly).
ERROR, url_link recursive (eces.Colorado.EDU/secure/mindterm2) 2025/07/08 [General] UID:1000 Activity:popular
7/8     

You may also be interested in these entries...
2012/8/26-11/7 [Computer/SW/Security] UID:54465 Activity:nil
8/26    Poll: how many of you pub/priv key users: 1) use private keys that
        are not password protected 2) password protect your private keys
        but don't use ssh-agent 3) use ssh-agent:
        1) .
        2) ..
        3) ...
	...
2012/8/29-11/7 [Computer/SW/Security] UID:54467 Activity:nil
8/29    There was once a CSUA web page which runs an SSH client for logging
        on to soda.  Does that page still exist?  Can someone remind me of the
        URL please?  Thx.
        \_ what do you mean? instruction on how to ssh into soda?
           \_ No I think he means the ssh applet, which, iirc, was an applet
              that implemented an ssh v1 client.  I think this page went away
	...
2012/8/30-11/7 [Computer/SW/Apps, Computer/SW/Unix] UID:54470 Activity:nil
8/30    Is wall just dead? The wallall command dies for me, muttering
        something about /var/wall/ttys not existing.
        \_ its seen a great drop in usage, though it seems mostly functional.
            -ERic
        \_ Couldn't open wall log!: Bad file descriptor
           Could not open wall subscription directory /var/wall/ttys: No such file or directory
	...
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/3/29-6/4 [Computer/HW/Memory, Computer/HW/CPU, Computer/HW/Drives] UID:54351 Activity:nil
3/29    A friend wants a PC (no mac). She doesn't want Dell. Is there a
        good place that can custom build for you (SSD, large RAM, cheap video
        card--no game)?
        \_ As a side note: back in my Cal days more than two decades ago when
           having a 387SX made me the only person with floating-point hardware,
           most machines were custom built.
	...
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
	...