Ch... what now?



  • The college I'm attending provides accounts on a SunOS server for students taking technical-type classes (programming, web design, etc). I was trying to find where the sysadmin had buried Apache's log files one night when I noticed find was returning some odd errors. I didn't have read permissions for several directories that I thought I should be able to access.

    <font face="Courier New">superhost-james% ls -l /usr/local/lib/perl5/site_perl/5.8.0
    total 166
    drwxr-xr-x 3  755 other    96 Dec 27  2005 Archive
    drwxr-xr-x 4 root other    96 Jan 30  2006 Class
    drwxr-x--- 2  755 other    96 Jan 30  2006 DBD
    lrwxrwxrwx 1 root other    60 Mar 24  2004 DBD.pm -> /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/DBI/DBD.pm
    drwxr-xr-x 4 root other    96 Jan 30  2006 DBI
    drwxr-xr-x 2 root other    96 Jan 30  2006 DBIx
    drwxr-xr-x 2 root other    96 Jan 30  2006 Data
    drwxr-x--- 2  755 other    96 Jan 15  2004 HTML
    drwxr-xr-x 2 root other  1024 Jan 30  2006 IO
    drwxr-xr-x 2 root other    96 Jan 30  2006 Ima
    drwxr-xr-x 4 root other  1024 May 21  2004 Mail
    drwxr-x--- 2 root other    96 Feb 19  2004 Mirapoint
    drwxr-xr-x 3 root other    96 Jan 30  2006 Module
    lrwxrwxrwx 1 root other    58 Mar 24  2004 Mysql.pm -> /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/Mysql.pm
    drwxr-xr-x 2 root other    96 Jan  8  2004 Net
    drwxr-xr-x 3 root other    96 Jan 30  2006 PPM
    -r--r--r-- 1 root other 77426 May 25  2005 PPM.pm
    drwxr-xr-x 3 root other    96 Jan  8  2004 Term
    drwxr-xr-x 2 root other  1024 Jan 30  2006 Text
    drwxr-xr-x 2 root other    96 Jan 30  2006 UNIVERSAL
    drwxr-x--- 4  755 other  1024 Jan 15  2004 URI
    -r--r--r-- 1 root other 29975 Jan 14  2004 URI.pm
    drwxr-x--- 2  755 other  1024 Jan 15  2004 XBase
    -r--r--r-- 1 root other 40369 Nov 21  2003 XBase.pm
    drwxr-xr-x 4 root other    96 Jan 24  2006 XML
    drwxr-xr-x 3 root other    96 May 21  2004 auto
    lrwxrwxrwx 1 root other    62 Mar 24  2004 mysql.pm -> /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/DBD/mysql.pm
    -r--r--r-- 1 root other 13723 Jan 30  2006 ppm.xml
    drwxr-xr-x 9 bin  bin    1024 Jan 30  2006 sun4-solaris</font>
     
    That seemed odd, yet familiar... I double-checked:
     
    <font face="Courier New">superhost-james% cat /etc/passwd | grep :755:
    superhost-james%</font>
     
    Sure enough, no 755 user.



  • @james said:

    ...
     
    <FONT face="Courier New">superhost-james% cat /etc/passwd | grep :755:
    superhost-james%</FONT>
     
    Sure enough, no 755 user.

     

    What's wrong with that? That's exactly what I get in cygwin. You ask too many questions, buddy.



  • @james said:

    That seemed odd, yet familiar... I double-checked:
     
    <font face="Courier New">superhost-james% cat /etc/passwd | grep :755:
    superhost-james%</font>
     
    Sure enough, no 755 user.


    The system users are le broken, unfortunate, but possible if you play around with tar or move a system from no nis to nis. Complain to the admins that you can't use your favourite Perl modules.

    Also, cat abuse! A grep :775: /etc/passwd gives you the same result (at least it would on my system).



  • Shouldn't it give an error when you try to chown to a user who doesn't exist?

    Anyway a fairly incompetent admin when you don't know simple things like chown and chmod.


Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.