tazpanel rev 233

settings.cgi: Make sure users are setup with users group account. Also make sure users are part of the tty group.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Feb 24 15:19:20 2012 -0500 (2012-02-24)
parents b960d4f9bc04
children b29c9171ae93
files settings.cgi
line diff
     1.1 --- a/settings.cgi	Fri Feb 24 15:17:28 2012 -0500
     1.2 +++ b/settings.cgi	Fri Feb 24 15:19:20 2012 -0500
     1.3 @@ -14,33 +14,6 @@
     1.4  
     1.5  TITLE="- Settings"
     1.6  
     1.7 -# Get the list of system locales
     1.8 -list_locales() {
     1.9 -	cd /usr/share/i18n/locales
    1.10 -	for locale in `ls -1 [a-z][a-z]_[A-Z][A-Z]`
    1.11 -	do
    1.12 -		echo "<option value='$locale'>$locale</option>"
    1.13 -	done
    1.14 -}
    1.15 -
    1.16 -# Get the list of console keymaps
    1.17 -list_keymaps() {
    1.18 -	cd /usr/share/kmap
    1.19 -	for keymap in *.kmap
    1.20 -	do
    1.21 -		basename $keymap .kmap | sed "s|.*|<option value='&'>&</option>|"
    1.22 -	done
    1.23 -}
    1.24 -
    1.25 -# Get the list of panel styles
    1.26 -list_styles() {
    1.27 -	cd $PANEL/styles
    1.28 -	for style in *
    1.29 -	do
    1.30 -		echo "<option value='$style'>$style</option>"
    1.31 -	done
    1.32 -}
    1.33 -
    1.34  #
    1.35  # Commands executed before page loading.
    1.36  #
    1.37 @@ -75,9 +48,9 @@
    1.38  		user=$(GET adduser)
    1.39  		passwd=$(GET passwd)
    1.40  		if [ -n "$user" ]; then
    1.41 -			adduser -D $user
    1.42 +			adduser -D -s /bin/sh -g "SliTaz User" -G users -h /home/$user $user
    1.43  			echo "$user:$passwd" | chpasswd | log
    1.44 -			for g in audio cdrom floppy video
    1.45 +			for g in audio cdrom floppy video tty
    1.46  			do
    1.47  				addgroup $user $g
    1.48  			done