Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
eos
eos-docker
Commits
6740a7b7
Commit
6740a7b7
authored
Apr 27, 2020
by
Fabio Luchetti
Browse files
Add script to create user directory and set xattrs
parent
69335326
Pipeline
#1589469
skipped with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
image_scripts/eos_create_userhome.sh
0 → 100755
View file @
6740a7b7
#!/usr/bin/env bash
usr
=
${
1
:-
"eos-user"
}
# if eos-user, uid=1000 and gid=1000
uid
=
$(
id
-u
$usr
)
gid
=
$(
id
-g
$usr
)
eos
chmod
3711 /eos/dockertest/proc/recycle
# drwx--s--+ 1 root root
eos
chmod
2755 /eos
# drwxr-sr-+ 1 root root
eos attr
set
sys.forced.blocksize
=
"4k"
/eos
;
eos attr
set
sys.forced.checksum
=
"adler"
/eos
;
eos attr
set
sys.forced.layout
=
"replica"
/eos
;
eos attr
set
sys.forced.nstripes
=
"2"
/eos
;
eos attr
set
sys.forced.space
=
"default"
/eos
;
eos
mkdir
/eos/user
#eos attr set sys.recycle="/eos/dockertest/proc/recycle/" /eos/user;
eos
mkdir
/eos/user/e
eos attr
set
sys.forced.maxsize
=
"50000000000"
/eos/user/e
;
eos attr
set
sys.mask
=
"755"
/eos/user/e
;
eos attr
set
sys.owner.auth
=
"*"
/eos/user/e
;
eos attr
set
sys.versioning
=
"10"
/eos/user/e
;
# usr home directory
eos
mkdir
/eos/user/e/
$usr
eos
chown
$usr
:
$usr
/eos/user/e/
$usr
eos
chmod
3711 /eos/user/e/
$usr
# drwx--s--+ 1 eos-user eos-user
eos attr
set
sys.acl
=
"u:
$uid
:rwx"
/eos/user/e/
$usr
;
eos attr
set
sys.allow.oc.sync
=
"1"
/eos/user/e/
$usr
;
eos attr
set
sys.forced.atomic
=
"1"
/eos/user/e/
$usr
;
eos attr
set
sys.mask
=
"700"
/eos/user/e/
$usr
;
eos attr
set
sys.mtime.propagation
=
"1"
/eos/user/e/
$usr
;
eos attr
set
user.acl
=
""
/eos/user/e/
$usr
;
eos access allow user
$usr
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment