Click to See Complete Forum and Search --> : Ubuntu samba problems
n00bieretard
07-30-2005, 04:57 PM
Hi,
I recently confugred samba serving on my ubuntu box, and the sahring of the home directoies works fine. However, whenever I try to share a complete drive, It does not give me write access to the drive. I believe this may be due to a faulty configuration, and the section for the share is this:
[hdd]
browsable = yes
writable = yes
create mask = 0777
directory mask = 0777
path = /mnt/hd
public = yes
locking = yes
please help me out!
thanks.
soulestream
07-30-2005, 05:03 PM
i dont think you can mount a drive that way
you can mount the partition to a folder /mnt/hdd and then share that via samba
soule
n00bieretard
07-31-2005, 06:47 AM
The drive is mounted as a folder, as you say, however this still does not work. Have you any further ideas?
regards
you can't properly mount a drive as /dev/hd
you have to specify a drive and a partition.
i.e.:
/dev/hda1
/dev/hdb3
thaddaeus
07-31-2005, 10:05 AM
Also you need to change tha actual drive access, The create/directory mask is what the files will end up being written as, try setting up the folder with 777 or changing the owener/group of the folder to reflect the user accessing the share from samba (or just 777 it for anyone to use it)
Hayl, if the device is mounted as /mnt/hd it would still be a mounted drive regardless of the actual /dev/* mounted to it.
I don't get it.
wouldn't the data be basically inaccessible?
you have to at least specify a partition and for sure you have to create at least one when you format the drive.
<edit>
DOH!!! OMG I reread the original post, and now I know what you are saying lol... I was being VERY stupid LOL
</edit>
soulestream
07-31-2005, 12:22 PM
DOH!!! OMG I reread the original post, and now I know what you are saying lol... I was being VERY stupid LOL
lol, me to.. I tought it said /dev/hd
can it be because the user being created doesnt have write access to the entire drive? ie you cant write to / as a regular user. \
soule
n00bieretard
07-31-2005, 12:24 PM
How would I change drive ownerships and the various other things you have suggested?
soulestream
07-31-2005, 12:27 PM
how you have the drive mounted in fstab?
soule
n00bieretard
07-31-2005, 01:10 PM
Yes I have, its is monunted and fully operational on the local machine, but not on the network.
soulestream
07-31-2005, 02:08 PM
how you have the drive mounted
not do you, but how do you
does any user have rw permissions to the drive
is root the only one with permissions
do you have /dev/hda /mnt/hd with any umasks
soule
n00bieretard
07-31-2005, 03:37 PM
*slaps himself*
Well, here's the fstab line-
<file system> <mount point> <type> <options> <dump> <pass
dev/hdd2 /mnt/large reiserfs defaults 0 2
soulestream
07-31-2005, 04:04 PM
*slaps himself*
Guess that means you figured it out
soule
thaddaeus
08-01-2005, 12:34 PM
"chmod" will change its access ie: Owner Group Public (777 for all accessible) "chown" will change user/group ownerships. "chmod -h" will give you some help useing chmod and the same goes for chown (and pretty much all command line programs use -h or --help for help useing it) Good luck, have you checked out the samba.org site, i suggest you do if you have not, it has some very helpful tuts, and tricks you can do with samba.
looks like the drive is also mounted under /mnt/large (probably the reason you slapped yourself :) )