John Walker wrote:

> Anyone ever seen anything like this before?
>
> Bash says a directory doesn't exist when logging in as the user who's home
> directory it is.
>
> The directory IS there.
>
> What the heck? (FWIW the directory had already been created when I created
> the user... Wonder what diff that makes?)
>
> Thanks,
> John
>
> PS, Please copy me directly on replies.
>
> [root@colin /home]# ls -al
> total 32
> drwxr-xr-x 5 root root 4096 Aug 13 12:08 .
> drwxr-xr-x 17 root root 4096 Jul 23 14:40 ..
> drwx------ 8 john john 4096 Aug 27 10:14 john
> drwxr-xr-x 2 root root 16384 Jul 3 17:15 lost+found
> drw-rw---- 7 mysql root 4096 Aug 27 11:50 mysql   <-LOOK AT THIS
> [root@colin /home]# telnet colin
> Trying 127.0.0.1... Connected to colin.
> Escape character is '^]'.
>
> Red Hat Linux release 6.2 (Zoot)
> Kernel 2.2.16-3 on an i586
> login: mysql
> Password:
>
> No directory /home/mysql! <- LOOK AT THIS
> Logging in with home = "/".
> bash: /home/mysql/.bash_profile: Permission denied
> bash$ logout
> bash: /home/mysql/.bash_logout: Permission denied
> Connection closed by foreign host.
>
> [root@colin /home]# ls -al
> total 32
> drwxr-xr-x 5 root root 4096 Aug 13 12:08 .
> drwxr-xr-x 17 root root 4096 Jul 23 14:40 ..
> drwx------ 8 john john 4096 Aug 27 10:14 john
> drwxr-xr-x 2 root root 16384 Jul 3 17:15 lost+found
> drw-rw---- 7 mysql root 4096 Aug 27 11:50 mysql

you need to set execute perms on the directory for the owner
chmod u+x /home/mysql

This will allow the current directory to be set to mysql for user mysql

Bret



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to