Results 1 to 4 of 4
Is it possible to do a network share for /home/john/mysharedfolder to a user peter (assuming peter has a useraccount on the system) over the intranet, without using samba? For the ...
- 03-07-2006 #1Just Joined!
- Join Date
- Mar 2006
- Posts
- 18
How do I do a network folder share to a specific linux user?
Is it possible to do a network share for /home/john/mysharedfolder to a user peter (assuming peter has a useraccount on the system) over the intranet, without using samba? For the client (peter), how does he access the shared folder (assuming peter's system does not have a GUI insterface)?
Thanks !
- 03-07-2006 #2
Peter needs access to the folder on the Linux box. I'm guessing Peter is on a Windows machine, but you don't wish to use samba.
In that case, the simplest way seems to use putty or another ssh client, if
I'm correctly understanding your question. Then he'll be remotely logged into the machine as Linux user peter.
- 03-08-2006 #3Just Joined!
- Join Date
- Mar 2006
- Posts
- 18
I guess in a hybrid environment, it is best to install samba

From a windows box, I can access the shared home directory with \\sambaserver\peter (which is actually /home/peter) and a windows box of the shared folder is displayed. File can then be transferred between the windows box and the linux box.
However, if I'm on a another linux box, how do I access /home/peter with samba via the commandline ?
Thanks !
Originally Posted by scottro
- 03-08-2006 #4
You did say a non-GUI environment, correct? So what about using ssh?
As for the other, if you wanted to do it, it would be easier in FreeBSD.
Ok, we are mounting the samba share called peter on sambaserver. We've created a mountpoint already, a directory called samba in our home directory.
If you don't need sambaserver's IP address in the command, it's pretty simple. Oh, the user name is peter and his password is 1234. Again, this is assuming that from the client machine, i fyou type ping sambaserver, you get a response
Note that you can't have a space between username=peter,password=1234. At least on the ArchLinux box I used to test it that gave me an error.Code:mount -t smbfs -o username=peter,password=1234 //sambaserver/peter peter
If sambaserver isn't in /etc/hosts, you can substitute its IP address for its name. In other words, if you can't ping sambaserver by name, but have to use its IP address, and the IP address is 192.168.1.10
If you don't actually need it mounted, I would think that using ssh would be easier, but I don't know your exact needs here.Code:mount -t smbfs -o username=peter,password=1234 //192.168.1.10/peter peter

One moderately useful aspect of it though is that one can, through, ironically enough what is a Microsoft protocol, easily share files between various BSD's and Linux. (Which can be done other ways of course.)


Reply With Quote
