Find the answer to your Linux question:
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 ...
  1. #1
    Just 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 !

  2. #2
    Just Joined! scottro's Avatar
    Join Date
    Feb 2006
    Posts
    57
    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.

  3. #3
    Just 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 !

    Quote Originally Posted by scottro
    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.

  4. #4
    Just Joined! scottro's Avatar
    Join Date
    Feb 2006
    Posts
    57
    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
    Code:
    mount -t smbfs -o username=peter,password=1234 //sambaserver/peter peter
    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.


    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
    Code:
    mount -t smbfs -o username=peter,password=1234 //192.168.1.10/peter peter
    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.

    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.)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •