"Povl H. Pedersen" <[EMAIL PROTECTED]> writes:
> I get a problem with /etc/X11/gdm/Sessions/*
> having wrong permissions. /var/log/messages tells me they should we
> world readable/executable.
> This is also the reason why I could not log in as a plain user, having
> the login just restart.
actually i do this in chksession :
if ($gdm) {
my $d = '/etc/X11/gdm/Sessions/';
chdir $d;
#Any better way ?
opendir D, $d or die "Can't open $d\n";
for ( readdir(D)) { next if /^\.\.?/;next if /^Failsafe/; chmod 0644, $_; }
closedir D;
for my $file (@lf) {
open FH, ">/etc/X11/gdm/Sessions/$file" or die "Can't write to
/etc/X11/gdm/Sessions/$file\n";
print FH "#!/bin/sh\n";
print FH "exec /etc/X11/Xsession $file\n";
close FH;
chmod 0755, $file;
}
unlink 'Default';
symlink shift @lf, 'Default';
}
a chmod 0755, what chmod gdm request excatly ?
--
MandrakeSoft Inc http://www.chmouel.org
San-Francisco, CA USA --Chmouel