Re: [SLUG] /home/user permissions Q

2003-08-27 Thread Voytek Eymont
** Reply to note from Gonzalo Servat [EMAIL PROTECTED] Tue, 26 Aug 2003 08:30:05 
+1000


 I think you'll find the Maildir directory has to be owned by the user. So: 
  
  # cd /home/sbt.net.au 
  # chmod 700 Maildir 
  # cd Maildir  find . -type f -exec chmod 600 {} \; 
  # find . -type d -exec chmod 700 {} \; 
  # cd .. 
  # chown -R user Maildir 
  
 Where user is the person who will be logging in to check sbt.net.au's  
 mailbox.

thanks, Gonzalo

at this time, I've only created users for 'domain owners' so, the user is
'sbt.net.au'

 as far as I can tell from the docs, Postfix will make the
'Maildir' on the fly on the 1st mail attempt to that user, hence, I don't
have them as yet, I guess, I should just make them myself, for all the
/home/*;

ahem, how I wrap it in a 'do for' loop

do for i in /home/* ..?

Voytek Eymont

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] /home/user permissions Q

2003-08-27 Thread Gonzalo Servat
On 26/08/2003 4:55 PM +, Voytek Eymont wrote:

ahem, how I wrap it in a 'do for' loop

do for i in /home/* ..?
You could add regexp's to this but if you want the Maildirs created for all 
the dirs in /home then:

for i in `ls /home/`; do
cd /home/$i
maildirmake Maildir
cd ..
chown -R $i $i
done
(presuming your users are named the same as your directories)

If you don't have the maildirmake utility, you can search google for it or 
alternatively change that command to create the Maildir/{tmp,new,cur} 
directories manually.

Gonzalo

--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


[SLUG] /home/user permissions Q

2003-08-25 Thread Voytek Eymont
I made the following dir structure:

/home/user1/www
/home/user2/www

and so on, where 'www' is the vhost html doc root

users have no shell, only ftp access,

as per suggestion here, I made root own all 'user1', ''user2', 
user himself only owns the 'www' dir

that worked OK so far, but, now that I'm trying to get email setup, it's
cuusing some hickups, as Postifx has trouble making it's dirs:

===
This is the Postfix program at host .
...

[EMAIL PROTECTED]: maildir delivery failed: create
/home/sbt.net.au/Maildir/tmp/1061818151.495_0.myhost.sbt.net.au:
Permission
denied
--
/home/sbt.net.au
drwxr-xr-x6 root root 4096 Aug  6 22:22 sbt.net.au

---
should I chmod it to rwxrwxr-x ? or ?

thanks,

Voytek Eymont

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] /home/user permissions Q

2003-08-25 Thread Gonzalo Servat
On 25/08/2003 11:53 PM +, Voytek Eymont wrote:

--
/home/sbt.net.au
drwxr-xr-x6 root root 4096 Aug  6 22:22 sbt.net.au
---
should I chmod it to rwxrwxr-x ? or ?
I think you'll find the Maildir directory has to be owned by the user. So:

# cd /home/sbt.net.au
# chmod 700 Maildir
# cd Maildir  find . -type f -exec chmod 600 {} \;
# find . -type d -exec chmod 700 {} \;
# cd ..
# chown -R user Maildir
Where user is the person who will be logging in to check sbt.net.au's 
mailbox.

Best regards,
Gonzalo
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug