MEPIS Community Forum

A Linux operating system based on Debian Stable
View unanswered posts | View unsolved topics | View active topics |



Reply to topic  [ 10 posts ] 
Would sharing HOME in VirtualBox be unwise? 
Author Message
Forum Regular
Forum Regular

Joined: Thu Dec 09, 2010 3:44 pm
Posts: 659
Has thanked: 6 times
Have thanks: 43 times
Post # 296867
Post Would sharing HOME in VirtualBox be unwise?
I'm setting up my virtual box install and I noticed that every folder I share becomes a network connection with a harddrive designation in the Windows XP guest. That is a nice way to do it but I didn't know if I wanted a half dozen extra network drives. Then I had the epiphony that I could just share my HOME folder and everything on my Linux harddrive would be available to Windows. But then after thinking about it I thought that might be foolish to give windows access to all my Mepis settings and info in the HOME folder. So what do the experts say? Is sharing home brilliant or the most foolish thing I could do with virtualbox.


Mon Mar 05, 2012 11:41 pm
Profile
Forum Veteran
Forum Veteran
User avatar

Joined: Wed Jul 12, 2006 5:54 am
Posts: 10946
Location: Tulsa, Oklahoma U.S.A.
Has thanked: 3701 times
Have thanks: 887 times
Post # 296876
Post Re: Would sharing HOME in VirtualBox be unwise?
I've always setup the Share folder and put everything in there.

_________________
Yes, even I am dishonest. Not in many ways, but in some. Forty-one, I think it is.
--Mark Twain


Tue Mar 06, 2012 2:10 am
Profile
Forum Guide
Forum Guide
User avatar

Joined: Sun Aug 06, 2006 3:02 pm
Posts: 2175
Location: New Zealand BOP
Has thanked: 77 times
Have thanks: 467 times
Post # 296880
Post Re: Would sharing HOME in VirtualBox be unwise?
You could share your entire home reasonably safely with permissions set correctly.

By default, Mepis creates folders with an octal permissions set of "755", which is read/write by owner, read-only by group, read-only by others

Start by removing all individual shares, then make your /home/you folder available.
Now open a terminal, make sure you are in your home directory and type the following
chmod -R 750 *

This will simply remove "othes" from being able to read the files, in essence, those coming from another system across the network.

Now make a text file with the full path to the folders you want to make available in this manner,
chmod -R 755 /home/you/Music /home/you/Pictures /home/you/Shared /home/you/Videos
This example supposes your user account is "you" and the folders you want to share are Music, Pictures, Share and Videos, so change it to match your system and desired folders.

When you have the line of text sorted, copy it into the terminal, press return, wait a minute, then try looking in from the other machine, you should see only the folders you have "enabled"

Mike P

_________________
Mike P

Regd Linux User #472293
(1)Lenovo e520, i7-2640M, 8GB, 750GB Seagate Hybrid, MX-14.1_DVD (my own respin)
(2) Asus M4A88TD-M, AMD Phenom II x4 955 CPU, Radeon HD 4250, 4Gb, 1.5TB, antiX-13-64


Tue Mar 06, 2012 4:56 am
Profile
Forum Regular
Forum Regular

Joined: Thu Dec 09, 2010 3:44 pm
Posts: 659
Has thanked: 6 times
Have thanks: 43 times
Post # 296891
Post Re: Would sharing HOME in VirtualBox be unwise?
Wow thanks Mike. I never considered that I might have to change permissions on the home folder. I figured I could see it in VirtualBox so it would just work. But my concern was opening up my HOME directory to Windows virus and the outside word of hackers. I figured its probably safer kept inside of Linux. What would happen if I just shared it in VBox without the changes? Would I loose read/write capabilities?

I'll consider setting it up like you said. But since I am looking for a clean way to setup my system and to make it portable to my laptop, I may just share individual folders or setup one main VBox share folder as Lucky does. Besides, if I was to reinstall the next Mepis 12+/- I don't know if I would remember to do all that setting up again. But I would like to hear your thoughts on what would happen if I shared home without changing permissions. I'm new to vbox so I'm not really sure just what to expect. If you know how to make copy/paste work between guest and host that would be huge help too.


Tue Mar 06, 2012 10:27 am
Profile
Forum Guide
Forum Guide
User avatar

Joined: Mon Jun 30, 2008 8:06 pm
Posts: 2952
Has thanked: 52 times
Have thanks: 376 times
Post # 296892
Post Re: Would sharing HOME in VirtualBox be unwise?
just would be leery of having your kde and app config info overwritten...

sticking with the shared folder option mentioned is best.


Tue Mar 06, 2012 10:28 am
Profile
Forum Regular
Forum Regular

Joined: Thu Dec 09, 2010 3:44 pm
Posts: 659
Has thanked: 6 times
Have thanks: 43 times
Post # 296893
Post Re: Would sharing HOME in VirtualBox be unwise?
GoManutd wrote:
just would be leery of having your kde and app config info overwritten...

sticking with the shared folder option mentioned is best.


Yeah, it does seem like there are some risk in sharing home. Its maybe best to not chance it. I'd like to leave things as close to stock as possible so you guys can help me if I have problems.

Also I found that copy/paste seems to only work with text and not images. Too bad, I really need to copy images from host to guest. But I'll give it a try and see how it works. I might just find work arounds as I use VB. Then again I might find its not worth the hassle and return to full windows for my work machine. I sure wish companies wrote programs in java or something cross platform.


Tue Mar 06, 2012 10:52 am
Profile
Forum Guide
Forum Guide
User avatar

Joined: Sat May 16, 2009 3:59 pm
Posts: 2902
Has thanked: 420 times
Have thanks: 446 times
Post # 296901
Post Re: Would sharing HOME in VirtualBox be unwise?
The best approach is to share only what you need, and nothing more.

_________________
Gigabyte 990FXA-UD3, AMD FX-6100 hex-core, 3.3GHz, Radeon HD6570
Gigabyte A55M-DS2, AMD A4-3400 dual-core APU (llano), 2.7 GHz, Radeon HD graphics
IBM ThinkPad T43, Intel Pentium M, 1.73GHz, Intel chipset


Tue Mar 06, 2012 2:10 pm

DBeckett thanked by: Adrian, JBoman, richb
Profile
Forum Regular
Forum Regular

Joined: Thu Dec 09, 2010 3:44 pm
Posts: 659
Has thanked: 6 times
Have thanks: 43 times
Post # 296908
Post Re: Would sharing HOME in VirtualBox be unwise?
DBeckett wrote:
The best approach is to share only what you need, and nothing more.



Good point. That is the direction I will go.


Tue Mar 06, 2012 6:07 pm
Profile
Administrator
User avatar

Joined: Wed Jul 12, 2006 2:17 pm
Posts: 10690
Location: Rochester NY
Has thanked: 835 times
Have thanks: 1433 times
Post # 296909
Post Re: Would sharing HOME in VirtualBox be unwise?
DBeckett wrote:
The best approach is to share only what you need, and nothing more.

That is the approach to use whether in VBox or on a regular HD install.

_________________
Forum Rules
Guide - How to Ask for Help
Link to Wiki
Rich

Acer Laptop V5-572G: Intel i5, 12 GIG mem, nVidia GT720M/Intel integrated graphics
Mx-14 Symbiosis
Kubuntu 13.10, KDE 4.11.2


Tue Mar 06, 2012 6:11 pm

richb thanked by: JBoman
Profile
Forum Veteran
Forum Veteran
User avatar

Joined: Wed Jul 12, 2006 5:54 am
Posts: 10946
Location: Tulsa, Oklahoma U.S.A.
Has thanked: 3701 times
Have thanks: 887 times
Post # 296916
Post Re: Would sharing HOME in VirtualBox be unwise?
Permissions in Linux is reasonably flexible. But I'd hate to be someone that really needed good security. I'd have to have physical locks and even then there are those who can hire the very best Locksmiths. Best security is keeping things in your head.
After all it only took the Federal Prosecutor an extremely short time to decrypt an encrypted hard disk! Anyone know what encryption method was used in that Colorado case?

_________________
Yes, even I am dishonest. Not in many ways, but in some. Forty-one, I think it is.
--Mark Twain


Tue Mar 06, 2012 9:55 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 10 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.