[How To] Get root access on F series

Here is information about customize your F series firmware.

Evgeny
SamyGO Project Donor
Posts: 24
Joined: Fri Jul 10, 2015 4:28 pm

Re: [How To] Get root access on F series

Post by Evgeny » Thu Apr 07, 2016 12:40 pm

looks like shares search part is not working
if specify folder names in SHARES="" all works
English is not my native language
F8000 Fw.:1125

zoelechat
Official SamyGO Developer
Posts: 8363
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [How To] Get root access on F series

Post by zoelechat » Thu Apr 07, 2016 1:12 pm

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.

Evgeny
SamyGO Project Donor
Posts: 24
Joined: Fri Jul 10, 2015 4:28 pm

Re: [How To] Get root access on F series

Post by Evgeny » Thu Apr 07, 2016 9:06 pm

init scripts have execution time limit?
English is not my native language
F8000 Fw.:1125

zoelechat
Official SamyGO Developer
Posts: 8363
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [How To] Get root access on F series

Post by zoelechat » Thu Apr 07, 2016 9:29 pm

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.

Evgeny
SamyGO Project Donor
Posts: 24
Joined: Fri Jul 10, 2015 4:28 pm

Re: [How To] Get root access on F series

Post by Evgeny » Thu Apr 07, 2016 9:58 pm

i think need add sleep after smbclient and before mount
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

zoelechat
Official SamyGO Developer
Posts: 8363
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [How To] Get root access on F series

Post by zoelechat » Thu Apr 07, 2016 10:10 pm

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.

Evgeny
SamyGO Project Donor
Posts: 24
Joined: Fri Jul 10, 2015 4:28 pm

Re: [How To] Get root access on F series

Post by Evgeny » Thu Apr 07, 2016 10:37 pm

does not work =(
English is not my native language
F8000 Fw.:1125

zoelechat
Official SamyGO Developer
Posts: 8363
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [How To] Get root access on F series

Post by zoelechat » Thu Apr 07, 2016 10:39 pm

If it works on 2nd run, duplicate it to run it twice :D
I do NOT receive any PM. Please use forum.

Evgeny
SamyGO Project Donor
Posts: 24
Joined: Fri Jul 10, 2015 4:28 pm

Re: [How To] Get root access on F series

Post by Evgeny » Thu Apr 07, 2016 11:02 pm

not work
I'm confused
English is not my native language
F8000 Fw.:1125

Evgeny
SamyGO Project Donor
Posts: 24
Joined: Fri Jul 10, 2015 4:28 pm

Re: [How To] Get root access on F series

Post by Evgeny » Fri Apr 08, 2016 6:13 pm

smbclient return shares if started manually
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

Post Reply

Return to “[F] Firmware”