View Full Version : Help with windows sharing
xcalibur
Mar 7, 2004, 08:31 AM
What's the best way to enable read only access to my files on all my files on my mac for windows sharing? Meaning all users connecting to my mac can only copy files? I'd rather not use the public folder as I want to share all my files. Thanks!
abhishekit
Mar 7, 2004, 03:02 PM
I take it that you already have the network on place and just want to know how to share your hard disk. Here is a fairly simple way.
On your mac, open terminal.
write 'cd /etc' with out the ''. press enter
then write 'emacs smb.conf' press enter
you will see a bunch of stuff...scroll down by the arrow key. you will see
[global]
some stuff
[homes]
some stuff
After homes and its stuff paste the following
#--------------------------------------------------------------------------
# hard disk
#--------------------------------------------------------------------------
[Hard disk]
comment = "Hard disk"
path = /Volumes/name of your hard disk
browseable = yes
guest ok = no
read only = yes
create mask = 644
directory mask = 755
you are done,Now save the changes - hold ctrl down, press x, release x, press s.
NOw exit - hold ctrl down, press x, release x,press c.
SO what you did above, was to make your drive as share, just as the default public folder.NOw just make another account, and when you log on to this account from windows or other systems, you would have read only access to your drive
hope it helps
cheers
xcalibur
Mar 7, 2004, 04:19 PM
I take it that you already have the network on place and just want to know how to share your hard disk. Here is a fairly simple way.
On your mac, open terminal.
write 'cd /etc' with out the ''. press enter
then write 'emacs smb.conf' press enter
you will see a bunch of stuff...scroll down by the arrow key. you will see
[global]
some stuff
[homes]
some stuff
After homes and its stuff paste the following
#--------------------------------------------------------------------------
# hard disk
#--------------------------------------------------------------------------
[Hard disk]
comment = "Hard disk"
path = /Volumes/name of your hard disk
browseable = yes
guest ok = no
read only = yes
create mask = 644
directory mask = 755
you are done,Now save the changes - hold ctrl down, press x, release x, press s.
NOw exit - hold ctrl down, press x, release x,press c.
SO what you did above, was to make your drive as share, just as the default public folder.NOw just make another account, and when you log on to this account from windows or other systems, you would have read only access to your drive
hope it helps
cheers
thanks for the reply. One question though, when i log on using another account wouldn't I be given access to /username only and not the root of my hard disk?
abhishekit
Mar 7, 2004, 04:59 PM
thanks for the reply. One question though, when i log on using another account wouldn't I be given access to /username only and not the root of my hard disk?
normally yes..but when you make changes as I wrote earlier, in the smb.conf file, it would make your hard drive a share. So now from other account, if you click harddrive. , it would show your original username, click and you would go in..
And yes, when you write 'emacs smb.conf' you should actually write 'sudo emacs smb.conf' and it will ask your password, type it in.
This is necessary because if you dont, then it wont allow you to write anything on smb.conf as it is a readonly file for everyone except root.
cheers
xcalibur
Mar 7, 2004, 06:38 PM
normally yes..but when you make changes as I wrote earlier, in the smb.conf file, it would make your hard drive a share. So now from other account, if you click harddrive. , it would show your original username, click and you would go in..
And yes, when you write 'emacs smb.conf' you should actually write 'sudo emacs smb.conf' and it will ask your password, type it in.
This is necessary because if you dont, then it wont allow you to write anything on smb.conf as it is a readonly file for everyone except root.
cheers
alright..thanks so much for your help...you've been really helpful..i'll give it a try later..
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.