read /var/spool/mail
hello guys, the basic is i like to create my own webmail, and read from /var/spool/mail i've already create the script to split and etc... but the problem is if i login as another user i cannot read from /var/spool/mail because the permission script... what i like to ask is... how to change the permission of the script so when people login he can read from /var/spool/mail ( they own mailbox ) my perl not compile with suid ( for security problem, plz understand this) so there is another way... pleaze send me with the sample of the script... thx -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Read /etc/shadow...
does anybody can help me... the script below has been change 'chown root.root checklogin.pl' ## Start Script ### $passwdfile = "/etc/shadow"; open (PASSWD, $passwdfile) or exit 1; # Always exit when we running not as root while (defined($line = )) { chomp($line); ($usr,$pswd) = (split(/:/, $line))[0,1]; last if ($usr eq $username); # We've found the user in /etc/passwd } close (PASSWD); when i'm running as root it's fine working well but when i'm using as nobody or orginary user it's not working... it's exit when it open $passwdfile... how do i check the passwd file to authentication login user...? i'm using this script for login user at web browser... Thx Always be ^»_«^ H E N G K Y -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Read /etc/shadow...
hi all, i'm reading at cpan.org using a module CfgTie::TieShadow how to use it...? i'm newbie here... what should i add at the top of a script before i can use the CfgTie::TieShadow thx > Hello hengky, > > Do you realy need the password ot the user ? In your script, you only > check on the user-name. > If you want to use the autdentication, then start another extern > checking program from your perl-script. > Hope this will help. > > Peter > > Hengky Stevanus wrote: > > > > hi Peter, > > thx for the information, but how i can read the password for the user at > > passwd, becaus the list of password in the shadow file... > > > > how do i compare the password for the user...? > > > > thx... > > > > > Hi, > > > > > > As far is i know. Don't use the /etc/shadow file but the /etc/passwd > > > file. Because the schadow file is only readable for root and the passwd > > > file is readable for everyone. And in the passwd file you can find the > > > information you need for your script. > > > > > > Peter > > > > Always be ^»_«^ H E N G K Y -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Read /etc/shadow...
oke thx RaFaL, I'm trying to create the web base mail, first thing to do is i'll like to create the authentication user first. ok by simple does anybody using mailman... i've been try to look at the script and i still don't understand how the mailman login to another mailserver... if anybody had the script just to login and read the /var/spool/mail please show it to me... pls... i need it so... just login and read the /var/spool/mail. thx so much before... Always be ^»_«^ H E N G K Y - Mess With The Best - - Die Like The Rest - -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
changing suid & groupid from webbase
i'm like to create a webbase mail... but while i reading at /var/spool/mail/$user it's not a valid user at the system, so how do i change the userid & groupid as the user login prompt ? i'm using seteuid, setuid, setpgrp but still not working... the uid & gid still nobody Please help me... Thx Always be ^»_«^ H E N G K Y -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]