Latest LQ Deal: Linux Power User Bundle
Go Back > Blogs > Focused4Success
User Name


Rate this Entry

Sharing Files between MacOS and OpenSUSE

Posted 11-06-2010 at 10:10 PM by Focused4Success

I like to keep all of my unique data and configuration scripts for my VMs on the native file system vs. mixing them in with the OS. I keep my user files under /home/username on my Mac. I access these files by mounting this filesystem as /mnt/username under OpenSUSE using CIFS. I also use a shared NIC vs. a bridged NIC to maintain security. Files created should be created with the proper user and group so they remain accessible when created over the network and accessed on the host. Finally, the firewall must be configure to allow access to the filesystem over the network.

To accomplish this do the following on the Mac:
- Under System Preferences perform the following:
-- Under Sharing perform the following
--- Check File Sharing
--- Click Options
---- Check Share files and folders using SMB
---- Check the account to use (Username in this case)
--- Turn on Remote login (for SSH)

- Under Filewall perform the following:
-- Set access for specific services and applications
--- File Sharing (AFP, SMB)
--- Remote Login (SSH)

Perform the following under OpenSUSE:
- mkdir /mnt/joebologna
- add the following line to /etc/fstab
// /mnt/username cifs username=username,group=username,password=xxx,uid=username 0 0
- make sure the cifs service is running using YAST2
- enter the command: mount -a
- cd /mnt/username
- echo >x
- ls -l

The newly created file and all other files should be available with the write permissions.
Views 466 Comments 0
« Prev     Main     Next »
Total Comments 0




All times are GMT -5. The time now is 11:28 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration