LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   networking 2 linux boxes (https://www.linuxquestions.org/questions/linux-newbie-8/networking-2-linux-boxes-871304/)

bloodyscript 03-27-2011 12:28 PM

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.

TobiSGD 03-27-2011 12:42 PM

You don't have to use a Windows share to share files between Linux boxes, you also can use NFS, SSH or rsync.

bloodyscript 03-27-2011 03:02 PM

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.

TobiSGD 03-27-2011 03:34 PM

May be you get a more detailed error-message if you mount the share from the command-line.

acid_kewpie 03-27-2011 03:57 PM

configuring nfs or sshfs is much much easier than samba, and, imo, much better when windows is not involved.

bloodyscript 03-27-2011 07:24 PM

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.

TobiSGD 03-27-2011 07:36 PM

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.

John VV 03-27-2011 10:37 PM

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

bloodyscript 03-28-2011 09:45 AM

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.

acid_kewpie 03-28-2011 09:59 AM

Quote:

Originally Posted by bloodyscript (Post 4305625)
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...

TobiSGD 03-28-2011 10:19 AM

Did you ty it with public (all lowercase)? This is the name you specified in your smb.conf for your share.

bloodyscript 03-28-2011 07:00 PM

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.

bloodyscript 03-28-2011 07:05 PM

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.


All times are GMT -5. The time now is 01:29 AM.