to check directory permission and owner

From: Chandrakant Reddy (chandrakantreddy_at_gmail.com)
Date: 12/28/04

  • Next message: John W. Krahn: "Re: How to concatenate nested arrays of strings"
    Date: Tue, 28 Dec 2004 12:36:29 +0530
    To: beginners@perl.org
    
    

    Hi
      How do I check whether user's home directory exist or not, & if
    exists then whether it is owned by his uid

    The perl script will have this information :
    username:x:20205:10000:my name :/home/username:/bin/bash

    regards
    CVR


  • Next message: John W. Krahn: "Re: How to concatenate nested arrays of strings"

    Relevant Pages

    • Re: theoretical question - can roots username be changed?
      ... would I have to create a new home directory called 'doorknob'? ... You may have as many user names associated with UID 0 as you like. ... the fact that the Unix security model is built ...
      (Fedora)
    • Re: Final conversion questions
      ... PLEASE be VERY CAREFULL with the perl script. ... in /etc/passwd is root with / as its home directory, ... will be chown'd to root. ... Files for normal users will eventually be corrected once their accounts ...
      (freebsd-isp)
    • Re: Changed uid broke gnome on Fedora 1
      ... Now when I login ... > as that user gnome whigs out. ... Assuming you put the new uid in the proper group, ... You likely need to chown -R the user's home directory using ...
      (comp.os.linux.setup)
    • Re: Cant login
      ... to care what your UID is. ... Replace <username> with your username, then see if you can log in normally. ... not write your authorizaition file. ... Sounds like a permissions problem with your home directory or you do not ...
      (Ubuntu)
    • Re: credit card reciept response
      ... running on a shared server, so I had to use a protected perl script with ... the constants like passwords and hash keys in the script. ... run by CGIwrap under my account's UID rather than as the web server's ... 'protected' perl script? ...
      (comp.lang.php)