i found something ugly about freeBSD

Dan Nelson dnelson at allantgroup.com
Thu Jan 29 18:52:03 PST 2004


In the last episode (Jan 29), zzerver at hotmail.com said:
> Am probably wrong i hope.... but mysqld creates a file call
> /tmp/mysql.sock but this file got to be 777??? ...i loging with a
> other useran call a rm /ytmp/mysql.sock and mysql stop working ...O_o
> ..but then i did this ...
>
> # chmod -R 777 /tmp

Don't do this ^^^.  The correct permissions for /tmp should be 1777,
aka a=rwx,=t.  The sticky bit prevents users from deleting each others
files in /tmp.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-questions mailing list