Dealing with the shared folders feature:
I am able to share a directory from my Linux Host, and I can have Windows map a drive to the share.
Now my problem is that when I use windows to write out a new file to the share, the file permissions of the share are only read and write for the owner.
I need to know if there is a configuration file or something like that, so I can set the default file creation permissions for when a file is written out from the windows guest to the Linux host.
I really do not want to use samba, only because this is easier, and I can instruct others quicker.
Thanks.
file permissions after writting from Windows Guest - Shared
-
ericm76903
- Posts: 3
- Joined: 12. Jul 2008, 02:39
-
ericm76903
- Posts: 3
- Joined: 12. Jul 2008, 02:39
Still looking
Ok, anyone have any ideas?
To summerize:
When writting a file from the XP guest to the Linux host, the file permissions are:
-rw------
I need the file permissions to be:
-rw-rw-rw
Anyone?
To summerize:
When writting a file from the XP guest to the Linux host, the file permissions are:
-rw------
I need the file permissions to be:
-rw-rw-rw
Anyone?
Hi Eric!
Hmm, this is a bit weird - I checked my file permissions, and files I create in the Windows guest are -rw-rw-rw in my linux dirve...
I'm wondering if you're possibly sharing an EXT3 partition that may be the issue - NTFS partitions don't (from what I can see) have the concept of ownership in Linux, and perhaps this is why anyone can write to my shared folder? Perhaps changing the owner of the 'host' shared folder may help this..
With regard to the file you're sharing on the Linux Host, can you do tell us where it is and what the set-up is - for example, I'm sharing an NTFS partition which is mounted to /media/data/
Check the ownership of the folder you're sharing - in a terminal navigate to the fodler above the folder you're [sharing (e.g. I'm sharing /media/data/ so naviagted to /media using) then type
(and enter your password)
Copy the line that relates to the directory that you're sharing and paste it here - for example, my directory is:
Hmm, this is a bit weird - I checked my file permissions, and files I create in the Windows guest are -rw-rw-rw in my linux dirve...
I'm wondering if you're possibly sharing an EXT3 partition that may be the issue - NTFS partitions don't (from what I can see) have the concept of ownership in Linux, and perhaps this is why anyone can write to my shared folder? Perhaps changing the owner of the 'host' shared folder may help this..
With regard to the file you're sharing on the Linux Host, can you do tell us where it is and what the set-up is - for example, I'm sharing an NTFS partition which is mounted to /media/data/
Check the ownership of the folder you're sharing - in a terminal navigate to the fodler above the folder you're [sharing (e.g. I'm sharing /media/data/ so naviagted to /media using
Code: Select all
cd/mediaCode: Select all
sudo ls -l . Copy the line that relates to the directory that you're sharing and paste it here - for example, my directory is:
Code: Select all
drwxrwxrwx 1 root root 20480 2008-07-13 18:24 data-
ericm76903
- Posts: 3
- Joined: 12. Jul 2008, 02:39
Hi there,
As far as what is being shared from the Linux host, it is:
/mnt
the permissions on the directory:
drwxrwxrwx 6 root root 4096 Jul 11 08:52 mnt
I have even gone as far as test with a new directory where the permissions are:
drwxrwxrwx 2 root vboxusers 4096 Jul 13 14:19 vshr
Hope this helps.
And yes, my filesystem is ext3
As far as what is being shared from the Linux host, it is:
/mnt
the permissions on the directory:
drwxrwxrwx 6 root root 4096 Jul 11 08:52 mnt
I have even gone as far as test with a new directory where the permissions are:
drwxrwxrwx 2 root vboxusers 4096 Jul 13 14:19 vshr
Hope this helps.
And yes, my filesystem is ext3