Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
2ac4f422
Commit
2ac4f422
authored
Sep 05, 2018
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rootfs/etc: create home directory for LDAP users
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
595c789b
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
3 deletions
+9
-3
wrs_build_wraprootfs
build/scripts/wrs_build_wraprootfs
+1
-1
wrs-boot-procedure
userspace/rootfs_override/etc/init.d/wrs-boot-procedure
+3
-0
nslcd.conf
userspace/rootfs_override/etc/nslcd.conf
+2
-2
sshd
userspace/rootfs_override/etc/pam.d/sshd
+1
-0
.bashrc
userspace/rootfs_override/etc/skel/.bashrc
+1
-0
home
userspace/rootfs_override/home
+1
-0
No files found.
build/scripts/wrs_build_wraprootfs
View file @
2ac4f422
...
...
@@ -61,7 +61,7 @@ chmod a+rx $TMPFS
##### now move stuff to usr (we need usr to be in flash, / remains initramfs)
# remove needless stuff
rm -rf
$TMPFS
/
home
$TMPFS
/
opt
rm -rf
$TMPFS
/opt
sed -i '/^default/ d'
$TMPFS
/etc/passwd
# move /wr and /var to /usr/wr and /usr/var
mv
$TMPFS
/wr
$TMPFS
/usr; ln -s usr/wr
$TMPFS
...
...
userspace/rootfs_override/etc/init.d/wrs-boot-procedure
View file @
2ac4f422
...
...
@@ -296,3 +296,6 @@ if grep -q initrd= /proc/cmdline; then
rm
/etc/init.d/wrs-boot-procedure
;
cp
-a
/usr/etc/
*
/etc
fi
# create dir for home dirs
mkdir
-p
/tmp/home
userspace/rootfs_override/etc/nslcd.conf
View file @
2ac4f422
...
...
@@ -109,8 +109,8 @@ pagesize 1000
referrals
off
filter
passwd
(&(
objectClass
=
user
)(
uidNumber
=*)(
unixHomeDirectory
=*))
map
passwd
uid
sAMAccountName
map
passwd
homeDirectory
unixHomeDirectory
#
map passwd homeDirectory "/home/$sAMAccountName"
#
map passwd homeDirectory unixHomeDirectory
map
passwd
homeDirectory
"/home/$sAMAccountName"
map
passwd
gecos
displayName
#map passwd loginShell "/sbin/nologin"
...
...
userspace/rootfs_override/etc/pam.d/sshd
View file @
2ac4f422
...
...
@@ -9,3 +9,4 @@ password required /lib/security/pam_unix.so shadow nullok use_authtok
session required /lib/security/pam_unix.so
session required /lib/security/pam_limits.so
session required /lib/security/pam_krb5.so minimum_uid=1000
session required /lib/security/pam_mkhomedir.so skel=/etc/skel umask=0022
userspace/rootfs_override/etc/skel/.bashrc
0 → 100644
View file @
2ac4f422
echo
"Home directory was automatically generated, it will be removed at the reboot"
userspace/rootfs_override/home
0 → 120000
View file @
2ac4f422
tmp/home
\ No newline at end of file
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