1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00
samba-mirror/source3/smbwrapper/smbsh

29 lines
495 B
Plaintext
Raw Normal View History

#!/bin/sh
LIBDIR=/home/tridge/samba/source/smbwrapper
# a simple launcher for the smbwrapper.so preloadde library
if [ x$SMBW_USER = x ]; then
echo username?
read user
SMBW_USER=$user
export SMBW_USER
fi
# this doesn't hide the password - we need a proper launch app for that
if [ x$SMBW_PASSWORD = x ]; then
echo password?
read pass
SMBW_PASSWORD=$pass
export
fi
LD_PRELOAD=$LIBDIR/smbwrapper.so
export LD_PRELOAD
export PWD
PS1='smbsh$ '
export PS1
bash