[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 »

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
SamyGO Moderator
Posts: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

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

Post by zoelechat »

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 »

init scripts have execution time limit?
English is not my native language
F8000 Fw.:1125
zoelechat
SamyGO Moderator
Posts: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

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

Post by zoelechat »

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 »

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
SamyGO Moderator
Posts: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

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

Post by zoelechat »

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 »

does not work =(
English is not my native language
F8000 Fw.:1125
zoelechat
SamyGO Moderator
Posts: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

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

Post by zoelechat »

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 »

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 »

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”