View previous topic :: View next topic |
Author |
Message |
mattwood2000 Tux's lil' helper
Joined: 13 Apr 2005 Posts: 146
|
Posted: Thu Feb 08, 2007 6:38 pm Post subject: [Solved] Another Samba/Windows XP problem |
|
|
Hi everyone I'm having some issues setting up samba to share a folder that everyone in my office can use as general storage. I've looked through the forum and the wiki pages, etc. but it seems everything that I've tried has no effect.
I have /dev/hdb1 mounted to /mnt/Storage and is vfat. Below is my smb.conf:
Code: |
[global]
workgroup = WORKGROUP
netbios name = tux
server string = Samba Server %v
log file = /var/log/samba/log.%m
max log size = 50
wins support = yes
domain master = no
guest account = smbguest
security = share
encrypt passwords = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
os level = 99
nt acl support = no
[Storage]
comment = Storage
public = yes
guest ok = yes
browseable = yes
writable = yes
create mask = 0777
directory mask = 1777
path = /mnt/Storage
|
smbguest is a valid gentoo user - have set system password and smbpasswd. I can browse the share no problem, but I cannot write to that folder. Ideally I need to be able to have any computer on our network see and write to this share without modification to the client side. I would also prefer not to have to enter a user/password (hence guest). Any help on this would be much appreciated. Thanks, Matt.
Last edited by mattwood2000 on Tue Feb 13, 2007 2:58 pm; edited 1 time in total |
|
Back to top |
|
|
thecooptoo Veteran
Joined: 27 Apr 2003 Posts: 1353 Location: UK
|
Posted: Thu Feb 08, 2007 8:28 pm Post subject: |
|
|
although not an ideal solution make a note of the existing permissions on /mnt/Storage.
chmod it to 777 and then try and save. if you can its a permissions problem. The onoy difficulty wit theis is working out WHAT permission problem it is.
You can then gradually increase the log lvele in samba looking for where it sends a username and see whats happening . _________________ join the optout - http://nhsconfidentiality.org |
|
Back to top |
|
|
mattwood2000 Tux's lil' helper
Joined: 13 Apr 2005 Posts: 146
|
Posted: Thu Feb 08, 2007 8:39 pm Post subject: |
|
|
Ok, here's what I got for permissions on /mnt/Storage:
Code: |
drwxr-xr-x 2 root root 8192 Feb 5 09:49 Storage
|
chmoding to 777 didnt take effect - I'm guessing due to it being FAT32...so I guess is the problem that I need to mount the partition differently in my fstab:
Code: |
/dev/hdb1 /mnt/Storage vfat user,noatime 0 1
|
Thanks, Matt |
|
Back to top |
|
|
wah Guru
Joined: 25 Feb 2005 Posts: 453 Location: Raleigh, NC, USA
|
Posted: Thu Feb 08, 2007 9:01 pm Post subject: |
|
|
mattwood2000 wrote: |
Code: |
/dev/hdb1 /mnt/Storage vfat user,noatime 0 1
|
Thanks, Matt |
Hi Matt,
Have you tried changing the "user" variable above to "users"? That is how I have mine setup...I do use authentication, but none of my users have an issue reading / writing to my shared drive from XP.
HTH,
W. _________________ - AMD64 3000+, MSI K8N-SLI, Nvidia Geforce 6600 PCIE, 2GB OCZ Dual-Channel PC3200,2x160GB SATA
- Registered Linux User #418541 |
|
Back to top |
|
|
mattwood2000 Tux's lil' helper
Joined: 13 Apr 2005 Posts: 146
|
Posted: Thu Feb 08, 2007 9:42 pm Post subject: |
|
|
Hi wahman143, I tried making it users, but I still cant write to the share...its really strange. I remember seeing some post about mounting vfat in fstab with gid and uid values. Any thoughts on this? Thanks, Matt. |
|
Back to top |
|
|
wah Guru
Joined: 25 Feb 2005 Posts: 453 Location: Raleigh, NC, USA
|
Posted: Thu Feb 08, 2007 9:53 pm Post subject: |
|
|
You mean such as this:
Code: |
VFAT/NTFS:
umask can be used to set permissions if you wish to change the default.
Syntax is "odd" at first.
To set a permissions of 777, umask=000
to set permissions of 700, umask=077
o= Sets owner. Syntax: may use user_name or user ID #.
g= sets group ownership of mount point. Again may use group_name or GID #.
|
With an fstab entry such as:
Code: |
/dev/hda7 /mnt/shared vfat umask=000 0 0
|
(shamelessly pulled off of google!)
Cheers,
W. _________________ - AMD64 3000+, MSI K8N-SLI, Nvidia Geforce 6600 PCIE, 2GB OCZ Dual-Channel PC3200,2x160GB SATA
- Registered Linux User #418541 |
|
Back to top |
|
|
mattwood2000 Tux's lil' helper
Joined: 13 Apr 2005 Posts: 146
|
Posted: Tue Feb 13, 2007 2:58 pm Post subject: |
|
|
Ahhh yes...the shamless google search! Thanks wahman143, problem solved the office is now sharing. Regards, Matt. |
|
Back to top |
|
|
wah Guru
Joined: 25 Feb 2005 Posts: 453 Location: Raleigh, NC, USA
|
Posted: Tue Feb 13, 2007 3:06 pm Post subject: |
|
|
mattwood2000 wrote: | Ahhh yes...the shamless google search! Thanks wahman143, problem solved the office is now sharing. Regards, Matt. |
Good stuff - glad I could help!
Cheers,
W. _________________ - AMD64 3000+, MSI K8N-SLI, Nvidia Geforce 6600 PCIE, 2GB OCZ Dual-Channel PC3200,2x160GB SATA
- Registered Linux User #418541 |
|
Back to top |
|
|
|