[How To] Get root access on F series
Re: [How To] Get root access on F series
looks like shares search part is not working
if specify folder names in SHARES="" all works
if specify folder names in SHARES="" all works
English is not my native language
F8000 Fw.:1125
F8000 Fw.:1125
Re: [How To] Get root access on F series
Well, smbclient is sometimes capricious, I personnally got rid of it a while ago to use nmblookup instead
I do NOT receive any PM. Please use forum.
Re: [How To] Get root access on F series
init scripts have execution time limit?
English is not my native language
F8000 Fw.:1125
F8000 Fw.:1125
Re: [How To] Get root access on F series
No, you can start Samba script as latest with sleep how-long-you-need inside it.
I do NOT receive any PM. Please use forum.
Re: [How To] Get root access on F series
i think need add sleep after smbclient and before mount
but I don't know how to do it
but I don't know how to do it
Code: Select all
get_shares()
{
if [ -z "$SHARES" ] ; then
echo "Search Shares" >> $LOGFILE
for i in $SERVERS ; do
echo "on: $i" >> $LOGFILE
S_MOUNTS=$(smbclient -U ${USER}%${PASSWD} \
-g -L $i -d 10| grep "Disk|" | grep -v "\\$" | grep -v " Service" | sed -r 's/.*\|(.*)\|.*/\1/' | sed -r 's/ /SGOspace/g')
# -g -L $i | grep "Disk|" | grep -v "\\$" | grep -v " Service" | cut -d "|" -f2)
[ -n "$S_MOUNTS" ] && do_mount $i
done
else
echo -n "Fixed Server: " >> $LOGFILE
for i in $SERVERS ; do
echo $i >> $LOGFILE
S_MOUNTS=$SHARES
[ -n "$S_MOUNTS" ] && do_mount $i
done
fi
}
English is not my native language
F8000 Fw.:1125
F8000 Fw.:1125
Re: [How To] Get root access on F series
You should first try simply at the beginning of script, otherwise at the beginning of do_mount() maybe
I do NOT receive any PM. Please use forum.
Re: [How To] Get root access on F series
does not work =(
English is not my native language
F8000 Fw.:1125
F8000 Fw.:1125
Re: [How To] Get root access on F series
If it works on 2nd run, duplicate it to run it twice
I do NOT receive any PM. Please use forum.
Re: [How To] Get root access on F series
not work
I'm confused
I'm confused
English is not my native language
F8000 Fw.:1125
F8000 Fw.:1125
Re: [How To] Get root access on F series
smbclient return shares if started manually
and return nothing if started automatically with samygo
why is this happening?
how to get shares with nmblookup?
and return nothing if started automatically with samygo
why is this happening?
how to get shares with nmblookup?
English is not my native language
F8000 Fw.:1125
F8000 Fw.:1125