unable to Sudo -E -s goflex

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

unable to Sudo -E -s goflex

Postby dmdelorme » Sun Apr 08, 2012 5:34 pm

i am following the guide armv5/seagate-goflex-home
but when i get to step 4.
Gain root access:sudo -E -s
i get prompted for a password i enter mypassword and get the following
david_hipserv2_seagateplug_PGZ@192.168.1.3's password:
-bash-3.2$ sudo -E -s
Password:
audit_log_user_command(): Connection refused
i have the current updates...
GoFlex Home version 10.0.x
Did i miss some thing?
dmdelorme
 
Posts: 14
Joined: Sun Apr 08, 2012 5:18 pm
Location: Winnipeg, Canada

Re: unable to Sudo -E -s goflex messed up sudoers file

Postby dmdelorme » Sun Apr 08, 2012 10:51 pm

Well i messed up my sudousers file so i did a reflash to factory and tried again.
this is what i got.
david@solaris:~$ ssh david_hipserv2_seagateplug_PGZH-QAMA-BZ ... 92.168.1.3
GoFlex Home version 10.0.x
david_hipserv2_seagateplug_PGZ@192.168.1.3's password:
-bash-3.2$ sudo -E -s

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

Password:
audit_log_user_command(): Connection refused
here is a copy of /etc/sudoers
$this->bbcode_second_pass_code('', '
## Sudoers allows particular users to run various commands as
## the root user, without needing the root password.
##
## Examples are provided at the bottom of the file for collections
## of related commands, which can then be delegated out to particular
## users or groups.
##
## This file must be edited with the 'visudo' command.

## Host Aliases
## Groups of machines. You may prefer to use hostnames (perhap using
## wildcards for entire domains) or IP addresses instead.
# Host_Alias FILESERVERS = fs1, fs2
# Host_Alias MAILSERVERS = smtp, smtp2

## User Aliases
## These aren't often necessary, as you can use regular groups
## (ie, from files, LDAP, NIS, etc) in this file - just use %groupname
## rather than USERALIAS
# User_Alias ADMINS = jsmith, mikem


## Command Aliases
## These are groups of related commands...

## Networking
Cmnd_Alias NETWORKING = /sbin/route, /sbin/ifconfig, /bin/ping, /sbin/dhclient, /usr/bin/net, /sbin/iptables, /usr/bin/rfcomm, /usr/bin/wvdial, /sbin/iwconfig, /sbin/mii-tool

## Installation and management of software
Cmnd_Alias SOFTWARE = /bin/rpm, /usr/bin/up2date, /usr/bin/yum

## Services
Cmnd_Alias SERVICES = /sbin/service, /sbin/chkconfig

## Updating the locate database
Cmnd_Alias LOCATE = /usr/bin/updatedb

## Storage
Cmnd_Alias STORAGE = /sbin/fdisk, /sbin/sfdisk, /sbin/parted, /sbin/partprobe, /bin/mount, /bin/umount

## Delegating permissions
Cmnd_Alias DELEGATING = /usr/sbin/visudo, /bin/chown, /bin/chmod, /bin/chgrp

## Processes
Cmnd_Alias PROCESSES = /bin/nice, /bin/kill, /usr/bin/kill, /usr/bin/killall

## Drivers
Cmnd_Alias DRIVERS = /sbin/modprobe

# Defaults specification

#
# Disable "ssh hostname sudo <cmd>", because it will show the password in clear.
# You have to run "ssh -t hostname sudo <cmd>".
#
Defaults requiretty

Defaults env_reset
Defaults env_keep = "COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR \
LS_COLORS MAIL PS1 PS2 QTDIR USERNAME \
LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION \
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC \
LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS \
_XKB_CHARSET XAUTHORITY"

## Next comes the main part: which users can run what software on
## which machines (the sudoers file can be shared between multiple
## systems).
## Syntax:
##
## user MACHINE=COMMANDS
##
## The COMMANDS section may have other options added to it.
##
## Allow root to run any commands anywhere
root ALL=(ALL) ALL

## Allows members of the 'sys' group to run networking, software,
## service management apps and more.
# %sys ALL = NETWORKING, SOFTWARE, SERVICES, STORAGE, DELEGATING, PROCESSES, LOCATE, DRIVERS

## Allows people in group wheel to run all commands
# %wheel ALL=(ALL) ALL

## Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL

## Allows members of the users group to mount and unmount the
## cdrom as root
# %users ALL=/sbin/mount /mnt/cdrom, /sbin/umount /mnt/cdrom

## Allows members of the users group to shutdown this system
# %users localhost=/sbin/shutdown -h now
')
This is the factory sudoers file.. I find it odd that i can sudo vi /etc/sudousers then save with :w! but cant do the sudo -E -s I am not an expert by anymeans but i suspect it is a setting in sudoers

I bought this because i got sick of slow transfer rates with the usb drives i use of my router ie 6.5 mb/sec with but i am only getting 7-8 with this on a gigbit network. Will this improve with Archlinux installed? or should i just bring it back?
dmdelorme
 
Posts: 14
Joined: Sun Apr 08, 2012 5:18 pm
Location: Winnipeg, Canada

Re: unable to Sudo -E -s goflex

Postby TheWalt » Mon Apr 09, 2012 1:21 am

$this->bbcode_second_pass_quote('', 'I') bought this because i got sick of slow transfer rates with the usb drives i use of my router ie 6.5 mb/sec with but i am only getting 7-8 with this on a gigbit network. Will this improve with Archlinux installed? or should i just bring it back?


I can't help with the sudo issue, but I can verify that on my Goflex Home I was getting about 18mb/sec average even before installing Archlinux so you may have some other network or file system type issues holding your speed back.
TheWalt
 
Posts: 23
Joined: Fri Feb 17, 2012 12:22 am

Re: unable to Sudo -E -s goflex

Postby moonman » Mon Apr 09, 2012 2:25 am

Disable FlowControl for the NIC on all the machines on the network. You will get much better speeds. Make sure you are using at least cat 5e cables. cat 5 (without e) doesnt have 2 pairs so it defaults to 100mbit.

As for the sudo. You can't just edit the sudoers file. Run "sudo visudo". I don't have a GoFlex with stock OS setup so I can't really help you here. Try "su root", "sudo su" or add your user name to the sudoers file with "<username> ALL=(ALL) ALL"
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: unable to Sudo -E -s goflex

Postby dmdelorme » Mon Apr 09, 2012 4:18 am

thanks for the Info I found the problem it was i was not ignoring the error it worked fine i will look into the flow control on the nic i have Cat5e cables. I got a archlinux installed and set up a nfs share as i just run linux and i belive my wd tv will use nfs.
i found this tidbit of information that helped. it should be added to the howto
"Again type your account password, you'll probably get a: "audit_log_user_command(): Connection refused" but it doesn't matter, you'll get the root prompt! "
it was found here http://www.openstora.com/wiki/index.php ... oot_Access
:D
dmdelorme
 
Posts: 14
Joined: Sun Apr 08, 2012 5:18 pm
Location: Winnipeg, Canada


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 2 guests