On Tue, May 15, 2007 at 08:21:23PM +0200, Steven Garcia wrote: > Almost forgot to ask an obvious question.. how to i find out who the > user is? I thought that chmod 775 would take care of this
chmod is used to set the permissions on a file (or directory or whatever :-). Basically each file has three sets of permissions associated with it: the first applies to the owning user of the file, the second to the group that owns the file, and the third to everybody else. chmod 755 means that the user owning the directory may read/write the directory (7), but everybody else may only read it (5 for group, 5 for others). To find out the owning user/group of a file use ls -l: drwxr-xr-x 4 jk users 4096 2007-01-10 11:09 index here the permissions are shown as 'rwx' (7) or 'r-x' (5), and that the index dir belongs to the user named 'jk' and the group 'users'. So to the user 'jk' the first set of permissions applies. To anybody else who is not 'jk', but a member of the 'users' group, the second set applies, and to everybody else the third one. To find out who's running your mongrel, use the ps command: $ ps aux |grep mongrel the u option tells ps to show the user running each process in the first column of the output. Grep is only used to filter the process list, might be you have to grep for something else (i.e. ruby) if you don't find your server by grepping for mongrel. Say the username your mongrel runs as is 'www', then change the ownership of your index directory and all containing files like that: chown -R www index/ Jens -- Jens Krämer webit! Gesellschaft für neue Medien mbH Schnorrstraße 76 | 01069 Dresden Telefon +49 351 46766-0 | Telefax +49 351 46766-66 [EMAIL PROTECTED] | www.webit.de Amtsgericht Dresden | HRB 15422 GF Sven Haubold, Hagen Malessa _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

