Click to See Complete Forum and Search --> : things i chmod dont stay chmod-ed


gnomes
01-17-2005, 08:21 PM
i can chmod files and folders as root, but when i log onto the ftp server with another account the same files and folders didn't retain their 777 setting.

i can also chmod them using the account i logged into the ftp with, but they too do not retain their setting.

this confuses me?

im running tinysofa server with apache and vsftpd is my ftp server.

flukshun
01-17-2005, 09:33 PM
weird. hopefully i'm just jumping the gun here but it's possible someone rooted your system and installed a modified ls command to hide permission changes. are these directories ever actually accessible after you change them, or are you just going by what `ls` reports?

gnomes
01-17-2005, 09:47 PM
accessible.

i think you've jumped the gun.

flukshun
01-17-2005, 09:57 PM
never hurts to be thorough :)

stiles
01-18-2005, 10:32 AM
how long does the mask last when you use the ftp client to chmod the files? I'm wondering if there is some type of cron job that is recursivelly chmoding the ftp directory. Is vsftpd a package provided by tinysofa?

gnomes
01-18-2005, 11:57 AM
it lasts just a few seconds. a minute tops.

yes, it is a package provided by tinysofa. though i tried it on trustix too with proftpd (provided package) and its the same problem.

cron job? i dont know what that means, but i see "fcron" in the startup for both trustix and tinysofa.

stiles
01-18-2005, 12:27 PM
cron is a periodical command scheduler, fcron is just a variant of cron, most linux distros use vixie cron. man cron will give you the man page, there are also lots of intros on the web about cron.

I'm wondering if these distros use some type of security model beyond unix permissions, like SELinux, grsecurity, or some role-based access control system. There could be something going on there but I can't help with that off hand.

gnomes
01-18-2005, 07:28 PM
is there a way to find out just what commands the cron is scheduling/edit them?

gnomes
01-18-2005, 08:13 PM
well it wasnt the fcron i checked it's conf.