[ Thread Index |
Date Index
| More lists.tuxfamily.org/slitaz Archives
]
- To: slitaz@xxxxxxxxxxxxxxxxxxx
- Subject: Re: tazx problem
- From: Indigo <pointofavailability@xxxxxxxxx>
- Date: Fri, 5 Nov 2010 16:51:42 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=hslUhjeXVwGDHKl23NqzKgb3hmywl1mX/j+WVuuHKDM=; b=Yz+upP4LIa5C4L+HPzPhD5Xqsvdd6HS+X5fsIF26L8NmR8UsaGPBYi4GZxUtvgsBC5 8aPPIqfU83sZO0GmoU6+RRT7lWf9r6uBcjAwbnOtFXW3aywlTIGuYPzQYIXUdGh18B8Z tFkty5tJRaayxR+wxZepXuIT3har+5MRF3qSQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=LJ/EzsMvfZ6QlaorifdbZUI/7K+bHZ2L3sEOmPYtcNUEGi2G1nKJQGWSCOJYb3WFva 3hW5uE/neaSiKqDtmx2kUSFUDm/W4WddSJWN9GuH0KQZDPtSwMkMWoiAdEaZqlPcui5X pc+hKCQ+vujG+rqWboqb9ym1wU0krBvlZaDZA=
On my system, /etc/groups shows a number of devices, starting with
cdrom 1000, and leading up to tux 1008...
but tazx uses /etc/passwd to get the username and assumes the group
name to be the same. Would it be wiser to make a group 'users' to
ease the creation of multiple accounts? I've looked and I think a
check for .xinitrc should be in slim.conf as part of the login_cmd,
running tazx if it's not there. Even though tazx is run as part of a
boot script, I don't think the redundancy would cause any problems.
If the USER variable is taken from the login, instead, tazx would not
have to be responsible for updating the home directories of all known
users, but could instead be done for each user, allowing for some
users to have different language prefs, and so on. As for the group,
it just makes sense that I would have tux:users and indigo6:users, but
I don't know if this would cause other problems...
On Fri, Nov 5, 2010 at 4:29 PM, Paul Issott <paul@xxxxxxxxxxxxxxxxxxx> wrote:
> Hi
>
> [From memory] Looking at the etc/group file: both tux and cdrom groups
> have the same number 1000
>
> Paul
>
>
> On Fri, 2010-11-05 at 14:47 +0000, Indigo wrote:
>> I was having the same problem with the new cooking ISO, that tazx
>> fails to copy the right files to the home directory, therefore slim
>> refuses to log in except as root -- but I found the bug!
>>
>>
>> Line 20 in /usr/bin/tazx reads: USER=`cat /etc/passwd | grep 1000 |
>> cut -f ":" -n 1`
>>
>>
>>
>> The problem is that user tux is actually 1008 on my system, so
>> USER=null which causes the configuration files to be copied to /home
>> instead of /home/tux, and the script ends with a chown error. After
>> changing 1000 to 1008 and running the script again, everything worked
>> as it should, and I can now log in as a regular user.
>>
>>
>> I question if the script can handle multiple users, too. Not only is
>> tazx used in live mode or during an install, but it could also be run
>> later when there may be more than one regular user. I don't see how
>> it's capable of handling that, so anyone using adduser will inevitably
>> run into the same problem. I'll leave it to the coders to fix this
>> the right way, but I wonder if maybe slim should invoke tazx on more
>> of a per user basis, if .xinitrc doesn't exist. This would allow for
>> the creation of new users with individual configurations. However it
>> happens, though, there's surely a better way to handle the USER
>> variable.
>>
>>
>> I'm posting this on the mailing list, instead of in IRC, because I
>> suspect this issue affects a number of people.
>
>
>
>
>
> ---
> SliTaz GNU/Linux Mailing list - http://www.slitaz.org/
>
>
---
SliTaz GNU/Linux Mailing list - http://www.slitaz.org/