Re: tazx problem

[ Thread Index | Date Index | More lists.tuxfamily.org/slitaz Archives ]


Hi Indigo,

You are spot on. New users are created with "1008" and above code using the slitaz installer. Slitaz installer correcly copies "/etc/skel/*" files to /home/$USER. But ".config"  and ".xinitrc" are not copied.

tazx creates .xinitrc and .config files but copies it to /home instead of /home/$USER.

tazx is having problem with $USER and $HOME variables. Result is that you cannot login on the graphical Slim login screen as a new user.  I realized that none of these files are copied to ~/.config:
a) /etc/xdg/openbox/*
b) /etc/slitaz/applications.conf

I think these fixes should temporarily do:
tazx: http://hg.slitaz.org/slitaz-tools/rev/1442140ec3d0
slitaz-installer: http://hg.slitaz.org/slitaz-tools/rev/7f85db867875
 
Adding a new user using Tazctrlbox should be fine.

Tazx is fixed for 1 new user. May be we have to add "for loop" for multi-user login. This is a major BUG.

Christophe, can you please have a quick look on the above commits.

Thanks

~ Rohit


On Fri, Nov 5, 2010 at 12:51 PM, Indigo <pointofavailability@xxxxxxxxx> wrote:
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/




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/