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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ERROR IN DELETING FILE

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
hi! can anybody give me some suggestion/s how-to delete file/s in Corel WP?

here's why?

1. im using corel wp suite7 and mapping a specific directory in AIX (4.2) as drive E:

2. i can not delete file/s from WP, but in AIX mode - i can.

i would be very glad for any help.

** as far as i file access' concerned it's all 777.




 
Can you alter existing files from WP, or add new ones?

Is it just that one directory (i.e. can you delete files from other directories)?

What's the directory's attributes? TandA
 
Just because the file access is 777 does not mean you should be able to remove it. As ayjaycee is asking, what is the directory permissions. If the directory permissions are -rwxrwxrwt, only the owner of the file can delete it. Although anyone can overwrite the file, as well as read and execute it.

crowe
 
yes. i can delete files from other directories. also, at WP browser, the said directory has side-arrow-up.

-rwxrwxrwx for all the files within the directory.
 
hi ayjaycee,

sorry, i might be missing something here, but can you be more specific on how to do it?

i would appreciate it greatly, if you could.

thank you in advance.
 
OK - you mentioned in your 1st post that the file permissions were 777. Just use whatever method you have for displaying this property on the directory that's giving the problem & compare with a directory that's OK.

e.g. (if you're using the unix command line) :-


# ls -ld problemdir
dr-xr-xr-x 29 root sys 1024 Aug 1 18:00 problemdir

# ls -ld okdir
drwxrwxrwx 29 fred wp 1024 Aug 2 7:30 okdir

Note the "w" permissions on the "okdir"

HTH s-) TandA
 
ayjaycee,

thanks for the hint.

here's what i did to fix it:

1. chmod g-s <directory>

explanation:

If the sgid bit is set on a directory, the symbolic mode must be used to unset it:

chmod g-s <file_name/directory>

The numeric mode will not produce an error but the sgid bit will still be set.

2. chmod 777 <directory>


It works fine!


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top