Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Infuriating permissions problem

Status
Not open for further replies.

mmcardle

IS-IT--Management
Oct 15, 2001
18
GB
A French customer has provided a Solaris 8 workstation for using their custom applications. I'm fairly new to Solaris 8 and I've had to teach myself what I know so far.

I'm tearing my hair out with a problem. I know UNIX directory and file permissions and user and group permissions and I've created a folder called "ftp" for the users to FTP files from the French client into. All is OK, but the users cannot delete the files once they have been received. They can move them, but not delete them. I've given the user account ownership of the folder/files, chmod 777 the folder/files and it still won't work. I can delete them as root though. A lot of the error messages are in French, so when they try to delete these files, they get (for example) "delete interdit test.tar" as a message.

Any kind soul out there with some ideas of what I'm doing wrong?
 
su to the accout of a French Coworker and run

Code:
csh% setenv LC_ALL C
csh% rm test.tar
or try
csh% truss -v all rm test.tar

can I see the output?

Regards
-- Franz
Sorry I'm not a native spaeker, I'm from Munich, Germany - "Home of the Whopper", oh no, "Home of the Oktoberfest" ;-)
Solaris System Manager; I used to work for Sun Microsystems Support (EMEA) for 5 years
 
my post assumes, that you use csh as a shell... :)

Regards
-- Franz
Sorry I'm not a native spaeker, I'm from Munich, Germany - "Home of the Whopper", oh no, "Home of the Oktoberfest" ;-)
Solaris System Manager; I used to work for Sun Microsystems Support (EMEA) for 5 years
 
Hi Franz,

Many thanks for your help on this. I really do appreciate it.

The output from the truss code is:

i18:/home/st05847/ftp>truss -v all rm tar.tar
execve("/usr/bin/rm", 0xFFBEF5D4, 0xFFBEF5E0) argc = 2
mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF3A0000
resolvepath("/usr/lib/ld.so.1", "/usr/lib/ld.so.1", 1023) = 16
open("/var/ld/ld.config", O_RDONLY) = 3
fstat(3, 0xFFBEEE68) = 0
d=0x00800004 i=201619 m=0100644 l=1 u=0 g=0 sz=132
at = May 24 12:52:05 MEST 2004 [ 1085395925 ]
mt = Apr 6 18:43:33 MEST 2004 [ 1081269813 ]
ct = Apr 6 18:43:33 MEST 2004 [ 1081269813 ]
bsz=8192 blks=2 fs=ufs
mmap(0x00000000, 132, PROT_READ, MAP_SHARED, 3, 0) = 0xFF390000
close(3) = 0
stat("/opt/dt/lib/libc.so.1", 0xFFBEECFC) Err#2 ENOENT
stat("/usr/openwin/lib/libc.so.1", 0xFFBEECFC) Err#2 ENOENT
stat("./libc.so.1", 0xFFBEECFC) Err#2 ENOENT
stat("./libc.so.1", 0xFFBEECFC) Err#2 ENOENT
stat("/usr/dt/lib/libc.so.1", 0xFFBEECFC) Err#2 ENOENT
stat("/usr/ccs/lib/libc.so.1", 0xFFBEECFC) Err#2 ENOENT
stat("/usr/lib/libc.so.1", 0xFFBEECFC) = 0
d=0x00800000 i=124145 m=0100755 l=1 u=0 g=2 sz=1157884
at = May 24 12:52:05 MEST 2004 [ 1085395925 ]
mt = Feb 1 00:08:35 MET 2003 [ 1044054515 ]
ct = Apr 6 17:15:58 MEST 2004 [ 1081264558 ]
bsz=8192 blks=2288 fs=ufs
open("/usr/lib/libc.so.1", O_RDONLY) = 3
fstat(3, 0xFFBEECFC) = 0
d=0x00800000 i=124145 m=0100755 l=1 u=0 g=2 sz=1157884
at = May 24 12:52:05 MEST 2004 [ 1085395925 ]
mt = Feb 1 00:08:35 MET 2003 [ 1044054515 ]
ct = Apr 6 17:15:58 MEST 2004 [ 1081264558 ]
bsz=8192 blks=2288 fs=ufs
mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF380000
mmap(0x00000000, 802816, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF280000
mmap(0xFF33C000, 24748, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 704512) = 0xFF33C000
munmap(0xFF32C000, 65536) = 0
memcntl(0xFF280000, 113448, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3) = 0
stat("/opt/dt/lib/libdl.so.1", 0xFFBEECFC) Err#2 ENOENT
stat("/usr/openwin/lib/libdl.so.1", 0xFFBEECFC) Err#2 ENOENT
stat("./libdl.so.1", 0xFFBEECFC) Err#2 ENOENT
stat("./libdl.so.1", 0xFFBEECFC) Err#2 ENOENT
stat("/usr/dt/lib/libdl.so.1", 0xFFBEECFC) Err#2 ENOENT
stat("/usr/ccs/lib/libdl.so.1", 0xFFBEECFC) Err#2 ENOENT
stat("/usr/lib/libdl.so.1", 0xFFBEECFC) = 0
d=0x00800000 i=123437 m=0100755 l=1 u=0 g=2 sz=5292
at = May 24 12:52:05 MEST 2004 [ 1085395925 ]
mt = Feb 1 00:06:57 MET 2003 [ 1044054417 ]
ct = Apr 6 16:33:12 MEST 2004 [ 1081261992 ]
bsz=8192 blks=12 fs=ufs
open("/usr/lib/libdl.so.1", O_RDONLY)
fstat(3, 0xFFBEECFC) = 0
d=0x00800000 i=123437 m=0100755 l=1 u=0 g=2 sz=5292
at = May 24 12:52:05 MEST 2004 [ 1085395925 ]
mt = Feb 1 00:06:57 MET 2003 [ 1044054417 ]
ct = Apr 6 16:33:12 MEST 2004 [ 1081261992 ]
bsz=8192 blks=12 fs=ufs
mmap(0xFF380000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF380000
close(3) = 0
stat("/usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1", 0xFFBEEB8C) = 0
d=0x00800000 i=268831 m=0100755 l=1 u=0 g=2 sz=17096
at = May 24 12:52:05 MEST 2004 [ 1085395925 ]
mt = Jan 6 00:41:56 MET 2000 [ 947115716 ]
ct = Apr 6 15:42:19 MEST 2004 [ 1081258939 ]
bsz=8192 blks=34 fs=ufs
open("/usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1", O_RDONLY) = 3
fstat(3, 0xFFBEEB8C) = 0
d=0x00800000 i=268831 m=0100755 l=1 u=0 g=2 sz=17096
at = May 24 12:52:05 MEST 2004 [ 1085395925 ]
mt = Jan 6 00:41:56 MET 2000 [ 947115716 ]
ct = Apr 6 15:42:19 MEST 2004 [ 1081258939 ]
bsz=8192 blks=34 fs=ufs
mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF370000
mmap(0x00000000, 16384, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF360000
close(3) = 0
munmap(0xFF370000, 8192) = 0
brk(0x000245B8) = 0
brk(0x000265B8) = 0
getrlimit64(RLIMIT_NOFILE, 0xFFBEF560) = 0
cur = 256 max = 1024
lstat64("tar.tar", 0xFFBEF468) = 0
d=0x00800005 i=186436 m=0100775 l=1 u=1001 g=5000 sz=5120
at = May 19 11:37:22 MEST 2004 [ 1084959442 ]
mt = May 19 11:37:22 MEST 2004 [ 1084959442 ]
ct = May 19 11:37:22 MEST 2004 [ 1084959442 ]
bsz=8192 blks=10 fs=ufs
access("tar.tar", 2) = 0
unlink("tar.tar") = 0
llseek(0, 0, SEEK_CUR) = 9944
_exit(0)
i18:/home/st05847/ftp>
 
this rm produced no error, since

Code:
unlink("tar.tar")                               [COLOR=red]= 0[/color]

0 means "no error"; can you reproduce the error, ask someone of your co-workers to run truss....

Regards
-- Franz
Sorry I'm not a native spaeker, I'm from Munich, Germany - "Home of the Whopper", oh no, "Home of the Oktoberfest" ;-)
Solaris System Manager; I used to work for Sun Microsystems Support (EMEA) for 5 years
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top