bonjour,
je suis sur une slitaz 5.0
comment ajouter un utilisateur en plus de tux, car je n'y arrive pas.
merci d'avance !!
bonjour,
je suis sur une slitaz 5.0
comment ajouter un utilisateur en plus de tux, car je n'y arrive pas.
merci d'avance !!
Bonjour
Après avoir lancé Sakura (ou Xterm) du menu Applications System, taper su puis mot de passe de l'administrateur ensuite
#adduser -h /home/toto toto
Autre solution, dans le menu Applications System lancer Slitaz panel
Enfin pour gérer les groupes auxquel l'utilisateur apppartient il me parait plus simple d'éditer /etc/group par
#leafpad /etc/group
sauver les modifications puis se déconnecter, reconnecter.
Bonne continuation.
bonjour,
merci d'avoir répondu.
le problème ,c'est qu'openbox ne veut pas se lancer, je n'ai donc pas de décoration de fenêtres, ni de raccourci.
pour info, je n'ai pas de dossier openbox dans "/home/<user>/.config"
From X-session:
Applications/System Tools/Slitaz Panel
Settings/Users/Add a new user
From terminal as user root:
slitaz-config
add-user
thanks, but i use the root session for second account now !
also, good things for you and bye !!
Generally not recommended.
Root has more credentials than a normal user needs (eg, root has the power to destroy your system).
Even experienced users (admins) do not do that.
Linux has (almost) no virus, but realy the most powerfull virus out there able to harm your system is a tired or not paying attention user with credentials ;)
i know,
seven years with linux ,and never nothing important piece in my system.
but thanks with...
good day !!
je vais pas rester sur ma fin...je voudrais quand même un autre utilisateur.
donc...malheureusement, au login : "failed to execute login command" et me renvoie sur "slim"
quelques infos:
slim.conf:
tux@slitaz:~$ cat /etc/slim.conf
# Path, X server and arguments (if needed)
# Note: -xauth $authfile is automatically appended
default_path /bin:/usr/bin:/usr/local/bin
default_xserver /usr/bin/X
#xserver_arguments -dpi 75
# Commands for halt, login, etc.
halt_cmd /sbin/shutdown -h now
reboot_cmd /sbin/shutdown -r now
console_cmd /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
#suspend_cmd /usr/sbin/suspend
# Full path to the xauth binary
xauth_path /usr/bin/xauth
# Xauth file for server
authfile /var/run/slim.auth
# Activate numlock when slim starts. Valid values: on|off
# numlock on
# Hide the mouse cursor (note: does not work with some WMs).
# Valid values: true|false
# hidecursor false
# This command is executed after a succesful login.
# you can place the %session and %theme variables
# to handle launching of specific commands in .xinitrc
# depending of chosen session and slim theme
#
# NOTE: if your system does not have bash you need
# to adjust the command according to your preferred shell,
# i.e. for freebsd use:
# login_cmd exec /bin/sh - ~/.xinitrc %session
login_cmd exec /bin/bash -login ~/.xinitrc %session
# Commands executed when starting and exiting a session.
# They can be used for registering a X11 session with
# sessreg. You can use the %user variable
#
# sessionstart_cmd some command
# sessionstop_cmd some command
# Start in daemon mode. Valid values: yes | no
# Note that this can be overriden by the command line
# options "-d" and "-nodaemon"
# daemon yes
# Available sessions (first one is the default).
# The current chosen session name is replaced in the login_cmd
# above, so your login command can handle different sessions.
# see the xinitrc.sample file shipped with slim sources
sessions xfce4,icewm-session,wmaker,blackbox
# Executed when pressing F11 (requires imagemagick)
screenshot_cmd import -window root /slim.png
# welcome message. Available variables: %host, %domain
welcome_msg Welcome to %host
# Session message. Prepended to the session name when pressing F1
# session_msg Session:
# shutdown / reboot messages
shutdown_msg The system is halting...
reboot_msg The system is rebooting...
# default user, leave blank or remove this line
# for avoid pre-loading the username.
#default_user tux
# Focus the password field on start when default_user tux
# Set to "yes" to enable this feature
#focus_password no
# Automatically login the default user (without entering
# the password. Set to "yes" to enable this feature
#auto_login no
# current theme, use comma separated list to specify a set to
# randomly choose from
current_theme openbox
# Lock file
lockfile /var/run/slim.lock
# Log file
logfile /var/log/slim.log
previous_theme default
.xinitrc du nouvel utilisateur
root@slitaz:/home/tux# cat /home/ghost/.xinitrc
# ~/.xinitrc: Executed by slim login manager to startx X session.
# You can use F1 with Slim to change your window manager or configure
# it permanently with your personal applications.conf file.
#
newrez 1920x1080 & sleep 2
. $HOME/.config/slitaz/applications.conf
export GTK2_RC_FILES="/root/.gtkrc-2.0"
case $1 in
e17|enlightenment*) exec enlightenment_start ;;
openbox|openbox-session|ob) exec openbox-session ;;
dwm|dwm-session) exec dwm-session ;;
fluxbox|startfluxbox) exec startfluxbox ;;
awesome) exec awesome ;;
pekwm) exec pekwm ;;
karmen|karmen-session) exec karmen-session ;;
jwm) lxpanel & exec jwm ;;
xfce|xfce4|xfce4-session) xfce4-session ;;
*)
compton -Cc -f -i 0.7 -e 0.6 -r 15 -l 6 -t 6 -o 1 &
exec $WINDOW_MANAGER ;;
esac
applications.conf du nouvel utilisateur:
root@slitaz:/home/tux# cat /home/ghost/.config/slitaz/app*
# SliTaz default applications configuration file. These apps can be
# started through wrappers: browser, editor and terminal.
#
# File manager.
FILE_MANAGER="spacefm"
# Web browser.
BROWSER="tazweb"
# Text editor.
EDITOR="leafpad"
# X terminal.
TERMINAL="sakura"
# Window manager.
WINDOW_MANAGER="openbox-session"
droits du home du nouvel utilisateur:
root@slitaz:/home/tux# ls -l -a /ho*/g*
total 84
drwxr-sr-x 12 ghost ghost 4096 Nov 25 07:54 ./
drwxr-xr-x 4 root root 4096 Nov 25 07:11 ../
-rw-r--r-- 1 root ghost 675 Nov 25 07:14 .bashrc
drwxr-xr-x 3 ghost ghost 4096 Nov 25 07:16 .cache/
drwxr-xr-x 9 ghost ghost 4096 Nov 25 07:20 .config/
drwx--S--- 3 ghost ghost 4096 Nov 25 07:16 .dbus/
drwxr-xr-x 2 ghost ghost 4096 Nov 25 07:11 Desktop/
drwxr-xr-x 2 ghost ghost 4096 Nov 25 07:11 Documents/
-rw-r--r-- 1 ghost ghost 38 Nov 25 07:11 .gtk-bookmarks
-rw-r--r-- 1 ghost ghost 250 Nov 25 07:11 .gtkrc-2.0
-rw-r--r-- 1 ghost ghost 160 Nov 25 07:11 .gtkrc-2.0.mine
drwxr-xr-x 3 ghost ghost 4096 Nov 25 07:11 Images/
drwxr-xr-x 2 ghost ghost 4096 Nov 25 07:11 .mhwaveedit/
drwxr-xr-x 2 ghost ghost 4096 Nov 25 07:11 Music/
-rw-r--r-- 1 ghost ghost 675 Nov 25 07:11 .profile
drwxr-xr-x 2 ghost ghost 4096 Nov 25 07:11 .retawq/
drwx--S--- 3 ghost ghost 4096 Nov 25 07:16 .thumbnails/
-rw------- 1 ghost ghost 51 Nov 25 07:54 .Xauthority
-rw-r--r-- 1 ghost ghost 465 Nov 25 07:11 .Xdefaults
-rw-r--r-- 1 ghost ghost 778 Nov 25 07:13 .xinitrc
lrwxrwxrwx 1 ghost ghost 10 Nov 25 07:11 .Xresources -> .Xdefaults
-rwx------ 1 ghost ghost 111 Nov 25 07:19 .xsession
j'ai créé le dossier openbox dans ~/.config/
je poste le contenu et les droits
root@slitaz:/home/tux# ls -l -a /ho*/g*/.co*/ope*
total 40
drwx------ 2 ghost ghost 4096 Nov 25 07:20 ./
drwxr-xr-x 9 ghost ghost 4096 Nov 25 07:20 ../
-rw-r--r-- 1 ghost ghost 535 Nov 25 07:20 autostart
-rw-r--r-- 1 ghost ghost 3092 Nov 25 07:20 menu.xml
-rw-r--r-- 1 ghost ghost 22949 Nov 25 07:20 rc.xml
@edit
je poste les droits du dossier "tux" pour faire la comparaison
root@slitaz:/home/tux# ls -l -a /ho*/tu*
total 268
drwxr-xr-x 45 tux users 4096 Nov 25 10:57 ./
drwxr-xr-x 4 root root 4096 Nov 25 07:11 ../
drwx------ 2 tux tux 4096 Oct 15 10:00 .AbiSuite/
drwx------ 3 tux tux 4096 Oct 12 23:24 .adobe/
drwx------ 2 tux tux 4096 Oct 12 17:03 .alsaplayer/
-rw------- 1 tux tux 17 Oct 13 12:28 .ash_history
-rw-r--r-- 1 tux tux 12 Oct 17 14:27 .asunder_album_artist
-rw-r--r-- 1 tux tux 12 Oct 17 14:27 .asunder_album_genre
-rw-r--r-- 1 tux tux 7 Oct 17 14:27 .asunder_album_title
-rw------- 1 tux tux 7616 Nov 25 10:56 .bash_history
-rw-r--r-- 1 root root 675 Oct 13 12:29 .bashrc
drwxr-xr-x 2 tux tux 4096 Oct 12 21:59 .beaver/
drwxr-xr-x 3 tux tux 4096 Oct 16 13:04 .blender/
drwxr-xr-x 14 tux users 4096 Nov 12 09:12 .cache/
drwxr-xr-x 2 tux tux 4096 Nov 12 08:57 .cddb/
drwxr-xr-x 11 tux tux 4096 Oct 17 14:25 .cddbslave/
drwxr-xr-x 35 tux users 4096 Nov 11 14:53 .config/
drwx------ 3 tux tux 4096 Oct 12 16:33 .dbus/
drwxr-xr-x 2 tux users 4096 Nov 25 11:49 Desktop/
drwxr-xr-x 2 tux users 4096 Nov 7 07:36 Documents/
-rw-r--r-- 1 root root 130 Oct 28 08:09 .drirc
drwxr-xr-x 6 tux tux 4096 Nov 11 17:28 .dvdcss/
drwxr-xr-x 2 tux tux 4096 Nov 20 14:21 dwhelper/
drwxr-x--- 2 tux tux 4096 Oct 17 14:43 .easytag/
drwxr-xr-x 5 tux tux 4096 Nov 3 09:36 .emerald/
drwxr-xr-x 3 tux tux 4096 Oct 16 11:04 .exaile/
drwx------ 4 tux tux 4096 Oct 19 11:50 .extcalc/
drwxr-xr-x 2 tux tux 4096 Nov 22 19:39 .fonts/
drwx------ 4 tux tux 4096 Nov 25 11:18 .gconf/
drwx------ 2 tux tux 4096 Nov 25 11:19 .gconfd/
drwxr-xr-x 24 tux tux 4096 Nov 24 15:01 .gimp-2.8/
-rw-r--r-- 1 tux tux 976 Nov 25 11:45 .gmrun_history
-rw-r--r-- 1 tux tux 30 Nov 6 12:26 .gmrunrc
drwx------ 3 tux tux 4096 Oct 18 18:51 .gnome2/
drwx------ 2 tux tux 4096 Oct 18 18:51 .gnome2_private/
drwxr-xr-x 2 tux tux 4096 Oct 17 11:30 .gstreamer-0.10/
-rw-r--r-- 1 tux users 38 Oct 12 16:31 .gtk-bookmarks
-rw-r--r-- 1 tux tux 587 Nov 2 07:16 .gtkrc-2.0
-rw-r--r-- 1 tux users 160 Oct 12 16:31 .gtkrc-2.0.mine
-rw-r--r-- 1 tux tux 2792 Nov 16 14:35 .guvcviewrc
drwx------ 7 tux tux 4096 Nov 2 14:27 .icons/
drwxr-xr-x 6 tux users 4096 Nov 17 07:20 Images/
drwxr-xr-x 3 tux tux 4096 Nov 4 13:34 .infoarch/
drwx------ 3 tux tux 4096 Oct 12 17:32 .local/
drwx------ 3 tux tux 4096 Oct 12 23:24 .macromedia/
drwxr-xr-x 2 tux users 4096 Oct 12 16:31 .mhwaveedit/
drwxr-xr-x 5 tux tux 4096 Oct 16 10:55 .mozilla/
drwxr-xr-x 2 tux tux 4096 Nov 12 18:05 .mplayer/
-rw-r--r-- 1 tux tux 273 Nov 24 10:48 .mtpaint
drwxr-xr-x 20 tux users 4096 Nov 15 15:45 Music/
-rw-r--r-- 1 tux tux 0 Oct 28 12:09 .odbc.ini
drwx------ 19 tux tux 4096 Oct 24 17:06 .opera/
-rwxr-xr-x 1 tux tux 160 Oct 27 10:06 .previous_xsession
-rw-r--r-- 1 tux users 675 Oct 12 16:31 .profile
drwxr-xr-x 6 tux tux 4096 Oct 1 12:39 .PSX2PSPv13/
drwx------ 2 tux tux 4096 Nov 25 11:17 Téléchargements/
drwxr-xr-x 2 tux tux 4096 Nov 10 08:48 .themes/
drwx------ 4 tux tux 4096 Oct 16 13:04 .thumbnails/
drwx------ 3 tux tux 4096 Oct 16 15:50 .tilda/
drwxr-xr-x 6 tux tux 4096 Aug 2 19:39 Videos/
-rw-r--r-- 1 tux tux 2 Oct 29 09:54 .windows-serial
drwxr-xr-x 4 tux tux 4096 Nov 24 16:13 .wine/
-rw------- 1 tux tux 51 Nov 25 10:57 .Xauthority
-rw-r--r-- 1 tux users 465 Oct 12 16:31 .Xdefaults
drwxr-xr-x 2 tux tux 4096 Nov 13 12:23 .xine/
-rw-r--r-- 1 tux tux 906 Nov 24 12:47 .xinitrc
lrwxrwxrwx 1 tux users 10 Oct 12 16:31 .Xresources -> .Xdefaults
-rwx------ 1 tux users 108 Oct 27 10:06 .xsession
/etc/slim.conf
#login_cmd exec /bin/bash -login ~/.xinitrc %session
login_cmd exec /bin/sh -l ~/.xinitrc %session
not good...not changed !!
Bonjour.
Il suffit de suivre scrupuleusement la marche à suivre:
- créer utilisateur, par exemple "pomme" avec adduser
puis:
# cp -a /etc/skel /home/pomme
# cp /root/.xinitrc /home/pomme
# mkdir -p /home/pomme/.config/slitaz
# cp -a /etc/slitaz/applications.conf /home/pomme/.config/slitaz
# chown -R pomme:pomme /home/pomme
Inspiré de la page http://doc.slitaz.org/fr:handbook:systemutils
You must log in to post.