Kod: Zaznacz cały
k1:x:1001:1000::/home/users/k1:/bin/bash
k2:x:1002:1000::/home/users/k2:/bin/bash
luftu:x:1005:1000::/home/users/luftu:/bin/bash
bot:x:1006:1000::/home/users/bot:/bin/bash
k4:x:1003:1001:,,,:/home/users/k4:/bin/bash
mysql:x:104:104:MySQL Server,,,:/var/lib/mysql:/bin/false
libuuid:x:105:105::/var/lib/libuuid:/bin/sh
k5:x:1007:1000::/home/users/k5:/bin/bash
pi:x:1008:1000::/home/users/pi:/bin/bash
Kod: Zaznacz cały
drwxr-xr-x 4 bot root 4096 lis 28 01:23 bot
drwxrwxrwx 6 k1 admins 4096 gru 23 00:36 k1
drwxrwxrwx 6 k2 root 4096 gru 31 07:49 k2
drwx---r-x 5 k4 root 4096 sty 3 01:08 k4
drwxr-xr-x 4 k5 root 4096 sty 2 22:14 k5
drwxr-xr-x 7 luftu root 4096 sty 2 21:58 luftu
drwxr-xr-x 2 k5 root 4096 sty 2 22:09 majkel
drwxrwx--- 5 pi root 4096 sty 3 01:03 pi
Kod: Zaznacz cały
host378:/home# ls -al
razem 32
drwxr-x--x 5 root root 4096 gru 30 00:41 .
drwxr-xr-x 22 root root 4096 paź 14 16:19 ..
drwxr-xr-x 2 admins admins 4096 paź 15 00:04 admins
drwx------ 2 root root 16384 paź 15 00:00 lost+found
drwxrwxrwx 10 root root 4096 sty 3 00:37 users
Kod: Zaznacz cały
host378:/home# cd users/
host378:/home/users# cd pi/
host378:/home/users/pi# ls -al
razem 20
drwxrwx--- 5 pi root 4096 sty 3 01:03 .
drwxrwxrwx 10 root root 4096 sty 3 00:37 ..
drwxr-xr-x 2 pi admins 4096 sty 3 01:03 a
drwxrwx--- 6 k1 admins 4096 sty 3 00:54 cs-gramy.pl
drwxr-xr-x 3 pi admins 4096 sty 3 00:54 .mc
Kod: Zaznacz cały
useradd -d /home/users/k5 -g 1000 -s /bin/bash k5
Kod: Zaznacz cały
chown k5 /home/users k5
Kod: Zaznacz cały
Permission denied.
Error code: 3
Error message from server: Permission denied
Request code: 9
Kod: Zaznacz cały
# FIRST_[GU]ID to LAST_[GU]ID inclusive is the range of UIDs of dynamically
# allocated user accounts/groups.
FIRST_UID=1000
LAST_UID=29999
# The USERGROUPS variable can be either "yes" or "no". If "yes" each
# created user will be given their own group to use as a default. If
# "no", each created user will be placed in the group whose gid is
# USERS_GID (see below).
USERGROUPS=yes
# If USERGROUPS is "no", then USERS_GID should be the GID of the group
# `users' (or the equivalent group) on your system.
USERS_GID=100
# If DIR_MODE is set, directories will be created with the specified
# mode. Otherwise the default mode 0755 will be used.
DIR_MODE=0700
# If SETGID_HOME is "yes" home directories for users with their own
# group the setgid bit will be set. This was the default for
# versions << 3.13 of adduser. Because it has some bad side effects we
# no longer do this per default. If you want it nevertheless you can
# still set it here.
SETGID_HOME=no
# If QUOTAUSER is set, a default quota will be set from that user with
# `edquota -p QUOTAUSER newuser'
QUOTAUSER=""
# If SKEL_IGNORE_REGEX is set, adduser will ignore files matching this
# regular expression when creating a new home directory
SKEL_IGNORE_REGEX="dpkg-(old|new|dist)"
# Set this if you want the --add_extra_groups option to adduser to add
# new users to other groups.
# This is the list of groups that new non-system users will be added to
# Default:
#EXTRA_GROUPS="dialout cdrom floppy audio src video lp src users"
# If ADD_EXTRA_GROUPS is set to something non-zero, the EXTRA_GROUPS
# option above will be default behavior for adding new, non-system users
#ADD_EXTRA_GROUPS=1
[ Dodano: 2009-01-02, 18:28 ]
dodatkowo wszystkie pliki w folderach userow sa : "owner : k1 ".... masakra.