>Number:         150988
>Category:       misc
>Synopsis:       'adduser' problem of directory mode
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 27 11:20:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     周杨
>Release:        FreeBSD 8.1
>Organization:
>Environment:
FreeBSD 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010  
r...@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
I do not have any initial user except 'root', so there is no /home or /usr/home 
directory on my system. Then I 'adduser' and set the '/home/myuser' permission 
to 0700, and the bug appears.

'adduser' tool created a /home directory and then a /home/myuser directory, and 
set both permission to 0700! The /home directory is owned by root, so the newly 
created user have no permission to access its own directory!
>How-To-Repeat:
1. remove the /home and /usr/home directory

2. adduser, when it says 'Home directory permissions (Leave empty for 
default):', input 0700

3. login as the new user
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to