Kery
Kery

Reputation: 523

share folder between windows and linux without root permission

I have a development server which installed ubuntu and I just have normal permission in this server. I want to share a folder with Windows to store the code and compile the code in this server but edit them in Windows. How can I achieve this without root permission?

PS. it seems that samba is installed in that server

Upvotes: 1

Views: 1915

Answers (2)

jkalden
jkalden

Reputation: 1588

In case you have an SSH server running on ubuntu, you can try installing e.g. MobaXTerm in windows and access ubuntu via ssh. If it works, you'll be able to use scp to transfer data efficiently!

Another option is to use rsync in combination with ssh, which can be used from linux without root permission. However, you may have to adjust windows permissions, then.

Best solution, however, is using a version control system as @Filburt mentioned in a comment above.

Upvotes: 1

Nick Michael
Nick Michael

Reputation: 71

  1. sudo apt-get install samba libpam-smbpass

  2. sudo service smbd restart

  3. sudo gedit /etc/samba/smb.conf and change the workgroup name -> workgroup = WORKGROUP

  4. sudo service smbd restart

  5. sudo apt-get install winbind

  6. sudo gedit /etc/nsswitch.conf add hosts: files mdns4_minimal [NOTFOUND=return] wins dns mdns4

  7. sudo /etc/init.d/networking restart

Upvotes: 1

Related Questions