Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Sep 2010 11:10:29 GMT
From:      "&#21608;&#26472;" <zrcvic@foxmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/150988: 'adduser' problem of directory mode
Message-ID:  <201009271110.o8RBAT5L037514@www.freebsd.org>
Resent-Message-ID: <201009271120.o8RBK3iX036860@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:     &#21608;&#26472;
>Release:        FreeBSD 8.1
>Organization:
>Environment:
FreeBSD 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010  root@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009271110.o8RBAT5L037514>