0

I have two ubuntu machines (machineA and machineB)connected through a wired Ethernet cable. I'm asking how I can give full permission and access of machineA to a certain folder Folder1 in the machineB over the network using terminal?

11
  • You mean you want a folder of machineA to appear and be writable on machineB? – LnxSlck Oct 14 '14 at 10:42
  • Please mentions which protocols are you using for access?And accordingly change the firewalls settings if enabled. Directory permissions could be changed with chmod 777 dir_path for every user and group.Check dir. properties for sharing options. And plz describe what do you mean by full permissions. – kashminder Oct 14 '14 at 10:44
  • @LnxSlck, Yes. What is happening is that there is a folder in machineB that I want userA in machineA have full access so that it can write and access it – Tak Oct 14 '14 at 11:14
  • @kashminder firewall is disabled. I always use chmod 777 to give access on the same machine, but I never did something like that over a network between two machines – Tak Oct 14 '14 at 11:16
  • If so, you have complete permissions to read write and execute over the network too. – kashminder Oct 14 '14 at 11:18
1

Basically, I see two possibilities: Samba or NFS. Both are client/server software which means you need to install the client part on your machineA and the server part on your machineB. From that point on, you can get access the files on the server via any software (including terminal) on the client.

On the differences, samba is based on the windows world. Therefore, files made available in samba are readily available also to Windows-based PC.

NFS stands for Network File System and allows you to mount on PC A (the client) directories that reside on PC B (the server). Once setup, it is completely transparent to the user. A standard windows PC would not see them, however.
A more complete discussion on the differences can be found here: Which to use NFS or Samba?

For a fairly complete discusion on how to install NFS, see https://help.ubuntu.com/community/SettingUpNFSHowTo

Not the answer you're looking for? Browse other questions tagged or ask your own question.