I'm running RH7.1 and Samba 2.2.2 . I would like to offer a VFAT partition on the server hard drive for universal read-write access. I mount the partition in fstab with /dev.hda5 /sys vfat defaults,rw,uid=1001,gid=1001 0 0 It mounts fine and shows up on the Windows 98 machine and can be opened. I can't write to it however. User and group 1001 are smbuser account, and they show up in /ls -l as the owner and group. security=share I'm logging in from host "rodger" - this account exists in hosts file chmod 777 /sys -R and chmod 777 /sys/* -R doesn't seem to get the job done either. I can set up directories under / and make them universally accessable, I just can't seem to do it with VFAT I'm new to the Linux world and would really appreciate any help you can give me. Thanks in advance. -Rodger
In my experience, only root can write to vfat partitions. Regular users cannot. Thomas Rodger Haynes wrote:>I'm running RH7.1 and Samba 2.2.2 . I would like to offer a VFAT >partition on the server hard drive for universal read-write access. I >mount the partition in fstab with > >/dev.hda5 /sys vfat defaults,rw,uid=1001,gid=1001 0 0 > >It mounts fine and shows up on the Windows 98 machine and can be opened. >I can't write to it however. >User and group 1001 are smbuser account, and they show up in /ls -l as >the owner and group. >security=share >I'm logging in from host "rodger" - this account exists in hosts file >chmod 777 /sys -R and chmod 777 /sys/* -R doesn't seem to get the job >done either. >I can set up directories under / and make them universally accessable, I >just can't seem to do it with VFAT >I'm new to the Linux world and would really appreciate any help you can >give me. Thanks in advance. -Rodger > > >
In smb.conf [sys] comment=VFAT share path=/sys writable=yes public=yes "Loo, Joseph" wrote:> Have you set the write permission for guest on the share? > > -----Original Message----- > From: Rodger Haynes [mailto:rodger@thompsonprint.com] > Sent: Friday, December 21, 2001 7:08 AM > To: samba > Subject: permissions on VFAT partitions > > I'm running RH7.1 and Samba 2.2.2 . I would like to offer a VFAT > partition on the server hard drive for universal read-write access. I > mount the partition in fstab with > > /dev.hda5 /sys vfat defaults,rw,uid=1001,gid=1001 0 0 > > It mounts fine and shows up on the Windows 98 machine and can be opened. > I can't write to it however. > User and group 1001 are smbuser account, and they show up in /ls -l as > the owner and group. > security=share > I'm logging in from host "rodger" - this account exists in hosts file > chmod 777 /sys -R and chmod 777 /sys/* -R doesn't seem to get the job > done either. > I can set up directories under / and make them universally accessable, I > just can't seem to do it with VFAT > I'm new to the Linux world and would really appreciate any help you can > give me. Thanks in advance. -Rodger > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba
I tried this to no avail. My understanding is that public=yes and guest ok=yes are synonymous commands "Loo, Joseph" wrote:> Try adding guest ok = yes > > -----Original Message----- > From: Rodger Haynes [mailto:rodger@thompsonprint.com] > Sent: Friday, December 21, 2001 8:15 AM > To: Loo, Joseph; samba > Subject: Re: permissions on VFAT partitions > > In smb.conf > [sys] > comment=VFAT share > path=/sys > writable=yes > public=yes > > "Loo, Joseph" wrote: > > > Have you set the write permission for guest on the share? > > > > -----Original Message----- > > From: Rodger Haynes [mailto:rodger@thompsonprint.com] > > Sent: Friday, December 21, 2001 7:08 AM > > To: samba > > Subject: permissions on VFAT partitions > > > > I'm running RH7.1 and Samba 2.2.2 . I would like to offer a VFAT > > partition on the server hard drive for universal read-write access. I > > mount the partition in fstab with > > > > /dev.hda5 /sys vfat defaults,rw,uid=1001,gid=1001 0 0 > > > > It mounts fine and shows up on the Windows 98 machine and can be opened. > > I can't write to it however. > > User and group 1001 are smbuser account, and they show up in /ls -l as > > the owner and group. > > security=share > > I'm logging in from host "rodger" - this account exists in hosts file > > chmod 777 /sys -R and chmod 777 /sys/* -R doesn't seem to get the job > > done either. > > I can set up directories under / and make them universally accessable, I > > just can't seem to do it with VFAT > > I'm new to the Linux world and would really appreciate any help you can > > give me. Thanks in advance. -Rodger > > > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: http://lists.samba.org/mailman/listinfo/samba
This what I used and it seems to work withou any problem. However, I found it takes a few minutes to propogate out. Make sure you start and restart the smb process before each configuration change unless you use swat. [temp] comment = Temporary storage only path = /home/nobody/write-anybody/temp read only = No guest ok = Yes -----Original Message----- From: Rodger Haynes [mailto:rodger@thompsonprint.com] Sent: Friday, December 21, 2001 9:24 AM To: Loo, Joseph; samba Subject: Re: permissions on VFAT partitions I tried this to no avail. My understanding is that public=yes and guest ok=yes are synonymous commands "Loo, Joseph" wrote:> Try adding guest ok = yes > > -----Original Message----- > From: Rodger Haynes [mailto:rodger@thompsonprint.com] > Sent: Friday, December 21, 2001 8:15 AM > To: Loo, Joseph; samba > Subject: Re: permissions on VFAT partitions > > In smb.conf > [sys] > comment=VFAT share > path=/sys > writable=yes > public=yes > > "Loo, Joseph" wrote: > > > Have you set the write permission for guest on the share? > > > > -----Original Message----- > > From: Rodger Haynes [mailto:rodger@thompsonprint.com] > > Sent: Friday, December 21, 2001 7:08 AM > > To: samba > > Subject: permissions on VFAT partitions > > > > I'm running RH7.1 and Samba 2.2.2 . I would like to offer a VFAT > > partition on the server hard drive for universal read-write access. I > > mount the partition in fstab with > > > > /dev.hda5 /sys vfat defaults,rw,uid=1001,gid=1001 0 0 > > > > It mounts fine and shows up on the Windows 98 machine and can be opened. > > I can't write to it however. > > User and group 1001 are smbuser account, and they show up in /ls -l as > > the owner and group. > > security=share > > I'm logging in from host "rodger" - this account exists in hosts file > > chmod 777 /sys -R and chmod 777 /sys/* -R doesn't seem to get the job > > done either. > > I can set up directories under / and make them universally accessable, I > > just can't seem to do it with VFAT > > I'm new to the Linux world and would really appreciate any help you can > > give me. Thanks in advance. -Rodger > > > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: http://lists.samba.org/mailman/listinfo/samba
Linux distributions often allow mounting of FAT and VFAT file systems in read-only mode to avoid file system corruption. So far as I am aware this is not a current real issue but more based out of fear. I regularly mount my MS Windows 98 disk partition to transfer files from my Ext3 Linux paritition for use under MS Windows. It is important that the mount point has appropriate user.group file system permissions. My users have no problem writing to the VFAT partition. More to the point though, why have any real VFAT partitions? Under Samba there are 'per share' parameters to determine the capabilities of the file system even if the underlying technology is Ext2 or something else. - John T.> Date: Fri, 21 Dec 2001 09:19:04 -0600 > From: Thomas Cameron <Thomas.Cameron@CameronTech.com> > To: samba <samba@lists.samba.org> > Cc: Rodger Haynes <rodger@thompsonprint.com> > Subject: Re: permissions on VFAT partitions > > In my experience, only root can write to vfat partitions. Regular users > cannot. > > Thomas > > Rodger Haynes wrote: > >>I'm running RH7.1 and Samba 2.2.2 . I would like to offer a VFAT >>partition on the server hard drive for universal read-write access. I >>mount the partition in fstab with >> >>/dev.hda5 /sys vfat defaults,rw,uid=1001,gid=1001 0 0 >> >>It mounts fine and shows up on the Windows 98 machine and can be opened. >>I can't write to it however. >>User and group 1001 are smbuser account, and they show up in /ls -l as >>the owner and group. >>security=share >>I'm logging in from host "rodger" - this account exists in hosts file >>chmod 777 /sys -R and chmod 777 /sys/* -R doesn't seem to get the job >>done either. >>I can set up directories under / and make them universally accessable, I >>just can't seem to do it with VFAT >>I'm new to the Linux world and would really appreciate any help you can >>give me. Thanks in advance. -Rodger
>I'm running RH7.1 and Samba 2.2.2 . I would like to offer a VFAT >partition on the server hard drive for universal read-write access. I >mount the partition in fstab with > >/dev.hda5 /sys vfat defaults,rw,uid=1001,gid=1001 0 0 > >It mounts fine and shows up on the Windows 98 machine and can be opened. >I can't write to it however.OK what I did to make this exact thing work on my system was to create a new group on my system called "user" (=gid 502) in my /etc/fstab I made the entry for /dev/hda5 look like /dev/hda5 /sys vfat uid=500,gid=502,umask=002 (umask=2 means permissions=775=rwxrwxr-x ie write to people in the owning group as well as the owner) And I set up my remote user to belong to group "user". The only other trick is that if you have been playing around with the user's credentials (user id, groups the user belongs to), you need to disconnect/reconnect to samba as it is like logging on to a normal UNIX shell, the user's group list and other credentials are picked up at login time. So if you have not logged in/out after making some changes, then any changes you have made to the user's group id or user id (uid) since the login don't have any effect on the samba client...(I discovered this after a Windows reboot fixed my problem). Apart from that, I have just defined the remote user on linux as a normal user with a name matching what is shown under "settings-network-identification-computer name" in windows. Password matching the logon password on the windows network client. It *does* work!!! So don't give up on it! (And if you really get stuck you can set the smb daemon up to give you a detailed trace of what it is doing as it tries to fulfil your requests. DOesn't tell you about the login/logout trick though!) Luck! Indulis Indulis Bernsteins Senior Systems Architect IBM Australia -------------- next part -------------- HTML attachment scrubbed and removed
Maybe he has a windows install on the machine that he needs files from occasionally. I've done this with home systems. Not everyone who's running Samba is in a corporate environment. ;) -----Original Message----- From: James Barwick [mailto:jbarwick@basicsllp.com] Sent: Monday, December 24, 2001 1:43 PM To: samba@lists.samba.org Subject: Re: permissions on VFAT partitions AND...suppose you want at ext2/3 partition to be a samba share..... On these types of shares, I setup SAMBA to "force a group" on file and directory creation. And in the Samba config, make sure that the file create and directory create permissions are 664 and 775 instead of 644 and 755. This will allow all users that belong to the unix group "user" (or "1001" in your xample) to have read/write permissios to all files created on the share. Why on EARTH would you have a VFAT partition setup as a share....why would you have them on your SAMBA server at all? You thought it would be easier? VFAT doesn't contain file permissions, so you can't really do an "NT Emulation" anyway....you can only do as you have done and force a single user/group...which you could do with SAMBA on ext partitions anyway. James Indulis Bernsteins wrote:>I'm running RH7.1 and Samba 2.2.2 . I would like to offer a VFAT >partition on the server hard drive for universal read-write access. I >mount the partition in fstab with > >/dev.hda5 /sys vfat defaults,rw,uid=1001,gid=1001 0 0 > >It mounts fine and shows up on the Windows 98 machine and can be opened. >I can't write to it however.OK what I did to make this exact thing work on my system was to create a new group on my system called "user" (=gid 502) in my /etc/fstab I made the entry for /dev/hda5 look like /dev/hda5 /sys vfat uid=500,gid=502,umask=002 (umask=2 means permissions=775=rwxrwxr-x ie write to people in the owning group as well as the owner) And I set up my remote user to belong to group "user". The only other trick is that if you have been playing around with the user's credentials (user id, groups the user belongs to), you need to disconnect/reconnect to samba as it is like logging on to a normal UNIX shell, the user's group list and other credentials are picked up at login time. So if you have not logged in/out after making some changes, then any changes you have made to the user's group id or user id (uid) since the login don't have any effect on the samba client...(I discovered this after a Windows reboot fixed my problem). Apart from that, I have just defined the remote user on linux as a normal user with a name matching what is shown under "settings-network-identification-computer name" in windows. Password matching the logon password on the windows network client. It *does* work!!! So don't give up on it! (And if you really get stuck you can set the smb daemon up to give you a detailed trace of what it is doing as it tries to fulfil your requests. DOesn't tell you about the login/logout trick though!) Luck! Indulis Indulis Bernsteins Senior Systems Architect IBM Australia -------------- next part -------------- HTML attachment scrubbed and removed
Hmm...I don't think that the filesystem on the Samba server should matter. It may be a "case mangling" issue, it seems like this came up once before on this list. I don't have any MS-DOS clients, though, so I can't really help you. -----Original Message----- From: Rodger Haynes [mailto:rodger@thompsonprint.com] Sent: Thursday, December 27, 2001 9:50 AM To: David Brodbeck; samba@samba.org Subject: Re: permissions on VFAT partitions I'm looking at the feasability of switching from a Novell server to a Linux server, and we have software that runs under DOS which is still important to us. When I tried sharing the files from Linux, the executables stored on the server wouldn't run. I'm a NEWBIE and in the first stages of looking into this, so I thought perhaps the programs would run better from a DOS partition. The files are accessed from terminals that have no disk drives, so the executables must be stored on the server. I don't think I should need DOSEMU because the code executes on the DOS box. David Brodbeck wrote: Maybe he has a windows install on the machine that he needs files from occasionally. I've done this with home systems.Not everyone who's running Samba is in a corporate environment. ;) -----Original Message----- From: James Barwick [mailto:jbarwick@basicsllp.com] Sent: Monday, December 24, 2001 1:43 PM To: samba@lists.samba.org Subject: Re: permissions on VFAT partitions AND...suppose you want at ext2/3 partition to be a samba share..... On these types of shares, I setup SAMBA to "force a group" on file and directory creation. And in the Samba config, make sure that the file create and directory create permissions are 664 and 775 instead of 644 and 755. This will allow all users that belong to the unix group "user" (or "1001" in your xample) to have read/write permissios to all files created on the share. Why on EARTH would you have a VFAT partition setup as a share....why would you have them on your SAMBA server at all? You thought it would be easier? VFAT doesn't contain file permissions, so you can't really do an "NT Emulation" anyway....you can only do as you have done and force a single user/group...which you could do with SAMBA on ext partitions anyway. James Indulis Bernsteins wrote:>I'm running RH7.1 and Samba 2.2.2 . I would like to offer a VFAT >partition on the server hard drive for universal read-write access. I >mount the partition in fstab with > >/dev.hda5 /sys vfat defaults,rw,uid=1001,gid=1001 0 0 > >It mounts fine and shows up on the Windows 98 machine and can be opened. >I can't write to it however.OK what I did to make this exact thing work on my system was to create a new group on my system called "user" (=gid 502) in my /etc/fstab I made the entry for /dev/hda5 look like /dev/hda5 /sys vfat uid=500,gid=502,umask=002 (umask=2 means permissions=775=rwxrwxr-x ie write to people in the owning group as well as the owner) And I set up my remote user to belong to group "user". The only other trick is that if you have been playing around with the user's credentials (user id, groups the user belongs to), you need to disconnect/reconnect to samba as it is like logging on to a normal UNIX shell, the user's group list and other credentials are picked up at login time. So if you have not logged in/out after making some changes, then any changes you have made to the user's group id or user id (uid) since the login don't have any effect on the samba client...(I discovered this after a Windows reboot fixed my problem). Apart from that, I have just defined the remote user on linux as a normal user with a name matching what is shown under "settings-network-identification-computer name" in windows. Password matching the logon password on the windows network client. It *does* work!!! So don't give up on it! (And if you really get stuck you can set the smb daemon up to give you a detailed trace of what it is doing as it tries to fulfil your requests. DOesn't tell you about the login/logout trick though!) Luck! Indulis Indulis Bernsteins Senior Systems Architect IBM Australia