SUMMARY: getpwd: permission denied for D1000 disks

From: Lin Feng (linlifeng@yahoo.com)
Date: Thu May 16 2002 - 23:26:25 EDT


Thanks to Frank Smith, Jeff Woolsey and Darren Dunham.

The problem was the origial mount point has more restrict permisions. The solution was to unmount the file systems and change the permision on the mount points and remount the file systems.

Thanks all very much.

The original quesitons:

> All drives on my D1000 are mounted fine. However I get this error:
>
> $ man cpio
> getcwd: Permission denied
>
> But here is the permission:
>
> $ su
> Password:
># ls -la
> total 22
> drwxr-xr-x 4 dba osdba 512 May 16 19:31 .
> drwxr-xr-x 47 root root 1024 May 9 07:38 ..
> drwx------ 2 root root 8192 May 9 08:33 lost+found
> drwxr-x--- 14 dba osdba 512 May 8 20:46 Rel10
>#
>
> (The man command works if I run as root)
>
> When I do a truss on the command, here is what I got:
> ....
> fstat64(3, 0xFFBEF9A0) = 0
> getdents64(3, 0x0002A718, 1048) = 264
> getdents64(3, 0x0002A718, 1048) = 0
> close(3) = 0
> pathconf(".", _PC_PATH_MAX) = 1024
> stat64("./", 0xFFBEFA30) = 0
> stat64("/", 0xFFBEF998) = 0
> open64("./../", O_RDONLY|O_NDELAY) Err#13 EACCES
> getcwdwrite(2, " g e t c w d", 6) = 6
> : write(2, " : ", 2) = 2
> Permission deniedwrite(2, " P e r m i s s i o n d".., 17) = 17
>
> write(2, "\n", 1) = 1
> llseek(0, 0, SEEK_CUR) = 5769
> _exit(1)
LAUNCH - Your Yahoo! Music Experience
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:20 EDT