Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a Western Digital My Book World Edition external storage drive. The version I have has a GB Ethernet network connection. I would like to access it from Linux but so far have had only limited success. I have been able to use SMB to access the Public directory but not any of the Private directories that I have created from the Windows Client. Also, I would like to be able to mount the drive with a faster transfer rate protocol, perhaps NFS. Any ideas, experience or links regarding MyBook Ethernet access?
NFS is a client - server arrangement. Is the device a NFS server? If yes, you can install the client on liuux, export the shares, and mount them in a directory of choice.
It sounds like this device supports windoze file sharing. Samba client should be able to see anything a windoze machine can see.
For the private shares, I would assume this has a user and password to protect it? Does it send a request to the linux client for a user/password? Are you able to at least see the private share?
I had a look at Western Digitals site. It is running Vista.
One other thing I was wondering, WD doesn't mention the ehthernet connection. I saw USB and firewire400 and firewire800 connections. Are we talking about the same thing, or is this drive external to your windoze machine and connected through USB or firewire?
Thanks for the response. I have found out a bit more information about this device since I posted. I was able to hack into the device via ssh with the instructions from: http://martin.hinner.info/mybook/
Quote:
Originally Posted by camorri
NFS is a client - server arrangement. Is the device a NFS server? If yes, you can install the client on liuux, export the shares, and mount them in a directory of choice.
It has the /etc/exports file and the exportfs program. But it doesn't have a script for starting nfsd. I am going to have to wrestle with it for a while. I'd be glad to get some pointers on this.
Quote:
Originally Posted by camorri
It sounds like this device supports windoze file sharing. Samba client should be able to see anything a windoze machine can see.
For the private shares, I would assume this has a user and password to protect it? Does it send a request to the linux client for a user/password? Are you able to at least see the private share?
I was able to get the smb mount to work but I am not happy with the default user rights. It uses a default www-data (33) user and I want to be able to save as root or whatever. I want to do a large rsync -az to the device and the user rights are not changeable, yet. (working on that angle too)
Quote:
Originally Posted by camorri
I had a look at Western Digitals site. It is running Vista.
Not this device; it's running Linux for sure:
Quote:
uname -a
Linux MyBook 2.6.17.14 #1 PREEMPT Mon Mar 26 12:36:33 BST 2007 armv5tejl GNU/Linux
Quote:
Originally Posted by camorri
One other thing I was wondering, WD doesn't mention the ehthernet connection. I saw USB and firewire400 and firewire800 connections. Are we talking about the same thing, or is this drive external to your windoze machine and connected through USB or firewire?
This device is capable of being turned into a web server which is great because aside from serving as a backup and storage device, I have long been looking for a cheap, cool, quiet, web server device for maintaining a home based web site. I was looking for an old laptop but this is better.
Any Advice on the nfs or cifs (smb) issues I mentioned above?
I stand corrected on the this WD product. It seems they make different models, and this on is linux based.
I saw a forum on WD's site. Have you looked there for help with NFS? Or how to install NFSfs etc.
I hope some one else can chime in with some help. This looks like a very good product to me, if there is some way through a package manager or compiling to add necessary code customizing use.
So now I have three ways to upload files to the device from Linux: scp, smb and nfs. But I still can't do rsync -az properly because it barfs about not having the authorization to do chown on the files. Is there a (cifs/smb mount or nfs mount) setting, or dir permission on the MyBook side, that will allow this? I have tried chmod 777 on the MyBook target dir and it still wouldn't allow chown. For now I just used tar to backup, no permissions issues this way.
Question, has anyone seen the source code for Martin Hinner's ssh hack? I know it's a php file you load when attempting to do a firmware upgrade and I emailed him asking for the source but got no rely.
I'm wondering if its possible he putting a backdoor in place or something like that.
Has anyone seen the source or attempted to see what the script is doing while it's running (other then creating ssh keys and enabling sshd)?
I'll have my mybook world in a few days but I'm not sure about this method of enabling sshd. It might be safer to mount one of the drives in another system and just enable sshd that way.
Question, has anyone seen the source code for Martin Hinner's ssh hack? I know it's a php file you load when attempting to do a firmware upgrade and I emailed him asking for the source but got no rely.
I'm wondering if its possible he putting a backdoor in place or something like that.
Has anyone seen the source or attempted to see what the script is doing while it's running (other then creating ssh keys and enabling sshd)?
I'll have my mybook world in a few days but I'm not sure about this method of enabling sshd. It might be safer to mount one of the drives in another system and just enable sshd that way.
Ok, how about this, have any of you that have used his php script hack checked your systems over to make sure everything is ok?
1. has anyone looked at Martin's script or been able to get in contact with him?
2. any progress of using/install rsync? (is the my book world running a rsync daemon?)
I'm considering getting one of these things specifically to be able to use rsync to do backups (currently have a LaCie Ethernet Disk Mini V2 that works very well, but it has no rsync and is not easily hacked).
1. has anyone looked at Martin's script or been able to get in contact with him?
2. any progress of using/install rsync? (is the my book world running a rsync daemon?)
I'm considering getting one of these things specifically to be able to use rsync to do backups (currently have a LaCie Ethernet Disk Mini V2 that works very well, but it has no rsync and is not easily hacked).
Cheers
I've sent 2 emails to him asking for the source but got no reply.
@spikesnet - thanks for the reply. guy *looks* legit, but zero replies to e-mails... and I can't quite understand why he does not want to publish the source for his hack...
@osgpcq - can you give us any more details as to what happens behind the scenes? I have still not decided whether a My Book is a good idea for me, and in any case I've never played around with tcpdump or ethereal etc (and am unlikely to find the time; even if I did not sure I'd understand anything).
This is a nice script which gets you up and running. The only issue I have is that it leaves your root password empty.
This is fine to let you get into your box, but I would recommend changing the root password when you get a chance to avoid letting anyone take over your box.
Quote:
/usr/bin/passwd -d root
Run this command as root to create a new password.
> /usr/bin/passwd
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.