LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-27-2011, 01:28 PM   #1
bloodyscript
Member
 
Registered: Apr 2006
Distribution: Sabayon linux 5.1
Posts: 182

Rep: Reputation: 15
networking 2 linux boxes


hi im trying to get a network setup

i followed the instruction via gentoo wiki samba
what i have done

configured smb.conf
global settings i changed
security = share
guest account = nobody
interfaces = lo eth0
bind interfaces only = true

shares i made
[public]
comment = stuff
path = /home/user/shared folder
public = yes
writable = yes
browseable = yes
guest account = nobody
guest ok = yes
available = yes

than i restarted samba
/etc/init.d/samba restart

then i did chmod 777 to the shared folders on both machines

went into nautilus it sees the folder but it will not mount the folder
showing the error msg:"unable to mount location failed to mount windows share"

ive been searching unbuntu forums opensuseforums and google for an answer to this issue but as of right now anything that i have tried to do has failed and nothing seems to be working.
 
Old 03-27-2011, 01:42 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853
You don't have to use a Windows share to share files between Linux boxes, you also can use NFS, SSH or rsync.
 
Old 03-27-2011, 04:02 PM   #3
bloodyscript
Member
 
Registered: Apr 2006
Distribution: Sabayon linux 5.1
Posts: 182

Original Poster
Rep: Reputation: 15
yes but ssh requires user/pass nfs the same thing i tried setting up nfs and ssh as well when i couldnt fix the samba issue. and either way there i run into issues and the simplest one to fix is the samba which is why i posted it here to find the solution to that issue.
 
Old 03-27-2011, 04:34 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853
May be you get a more detailed error-message if you mount the share from the command-line.
 
Old 03-27-2011, 04:57 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
configuring nfs or sshfs is much much easier than samba, and, imo, much better when windows is not involved.
 
Old 03-27-2011, 08:24 PM   #6
bloodyscript
Member
 
Registered: Apr 2006
Distribution: Sabayon linux 5.1
Posts: 182

Original Poster
Rep: Reputation: 15
acid_kewpie ok well with nfs or ssh can i just open nautilus selected the shared folder view and modiy its contents without inputing a single username or password once? becuase when i tried to setup ssh i had to input a username and password wihtout knowing what the defualt was since i never specified a user or a password and thats not what i want. i setup samba before i felt i knew more about setting it up then nfs or ssh which is why i chose samba.

TobiSGD- how would i manualy mount it via terminal i never attempted to do so? i tried useing the regualar mount command but i havnt added the share in fstab.

it really dosnt matter what i use as long as the end result i can access each computers shared files and folders without inputing a user or a password.
 
Old 03-27-2011, 08:36 PM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853
Try this:
Code:
mount -t cifs -o user=nobody,password=none //IPOFREMOTEPC/SHARE /YOURMOUNTPOINT
Exchange IPOFREMOTECOMPUTER with the IP of the computer you want to connect to, SHARE with the name name of the share and YOURMOUNTPOINT with the name of the directory you want to mount the share at.
At my home I have a fileserver that delivers to Linux and Windows machines, so I also use Samba for that. I can mount my server with this command:
Code:
mount -t cifs -o user=nobody,password=none //XXX.XXX.XXX.XXX/server /server
I have obfuscated the IP, but basically I am mounting the share server that is on machine XXX.XXX.XXX.XXX to my local directory /server.
 
Old 03-27-2011, 11:37 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,239

Rep: Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522
NFS would be the easiest

i have a folder set up on suse and if i drop a file in there it moves over to the SL6 box
 
Old 03-28-2011, 10:45 AM   #9
bloodyscript
Member
 
Registered: Apr 2006
Distribution: Sabayon linux 5.1
Posts: 182

Original Poster
Rep: Reputation: 15
TobiSGD--mount -t cifs -o user=nobody,password=none //my ip/Public /home/hiawatha/john
retrying with upper case share name
mount error(6): No such device or address
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

that's what i received when i did that command.
 
Old 03-28-2011, 10:59 AM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Quote:
Originally Posted by bloodyscript View Post
acid_kewpie ok well with nfs or ssh can i just open nautilus selected the shared folder view and modiy its contents without inputing a single username or password once? becuase when i tried to setup ssh i had to input a username and password wihtout knowing what the defualt was since i never specified a user or a password and thats not what i want. i setup samba before i felt i knew more about setting it up then nfs or ssh which is why i chose samba.
yes, if you hit "Places" and add one there SSH should be in the list. But then that's if you want to use the fluffy stuff to access it in the first place...
 
Old 03-28-2011, 11:19 AM   #11
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853
Did you ty it with public (all lowercase)? This is the name you specified in your smb.conf for your share.
 
Old 03-28-2011, 08:00 PM   #12
bloodyscript
Member
 
Registered: Apr 2006
Distribution: Sabayon linux 5.1
Posts: 182

Original Poster
Rep: Reputation: 15
yes i did it was a typo sorry. i rechecked the ip address i used as well and that was correct. i did a ping command for 50 sequences and it said the host was unreachable this was the results:

50 packets transmitted, 0 received, +38 errors, 100% packet loss, time 49011ms
pipe 3

i believe i discovered the problem i have dhcp set for my computers so the ip adresses could be changing causeing the failure to mount.
 
Old 03-28-2011, 08:05 PM   #13
bloodyscript
Member
 
Registered: Apr 2006
Distribution: Sabayon linux 5.1
Posts: 182

Original Poster
Rep: Reputation: 15
acid_kewpie- yes they are there cause i tried ssh and it requests a user and pass that i dont want to bother with. i do not wish to input a username or password to access files on a different computer. all i want to do is click a folder and i have access to them.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Networking two linux boxes leonsmit2003 Linux - Newbie 3 01-02-2008 10:30 PM
Networking 2 linux boxes with NFS?? ludwig W SUSE / openSUSE 4 10-16-2005 04:09 PM
Networking 2 linux boxes together d4harvey Linux - Networking 6 05-29-2004 12:41 PM
networking two linux boxes dhcp?? mike@wales Linux - Newbie 2 06-02-2003 06:43 PM
Networking 2 Linux boxes Jester21 Linux - Networking 4 01-21-2003 04:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration