Samba Techs, ***Question*** Can you prevent file permission problems on Samba mounts? I have Samba 2.0.5a loaded on our SUN SPARCcenter 2000's and our HP-UX 9000's and I have had a file permission problem ever since 1.9.8 was installed way back when. Every once in a while we have a situation where someone copies a file from we'll say /info8/pub/word.document, to there personal directory, edits the file and pastes it back to it's original location, and when another person from "the same group" tries to access the file, there permissions are denied. I have spent many many hours looking into this issue and I cannot come up with a solution. Here are a few things I have tried: 1. Change the default umask on the UNIX machine to 0000 so that it would quit taking away the "write" permission. 2. Set a sticky bit to particular directories 3. Upgraded to a 2.0 version and update the smb.conf file to be set up as a share (example below) [info8] comment = Public Directory path = /info8/pub browsable = yes writeable = yes valid users = @exec @chc write list = @exec @chc create mask = 777 directory mask = 777 map archive = yes map system = yes map hidden = yes veto oplock files = /*.dbm/*.htm/ ***Question*** To make a file-share work does it have to be "name specific". For example is it alright for the mount to be called [info8] or does it have to say something like [first-share]. Because with the setup I have above, which I created be a file-share to prevent the permission problems, still isn't fixing the problem! I even looked through your FAQ list on the Samba website and found Eric Praetzel that has had the same problems. I emailed him to see if he ever found a fix but he said that no one had suggested anything that worked. THANKS in advance for any support you can give me! Best Regards, Craig Hansen UNIX System Administrator
Check out force group=, and directory mode= and create mask=. Steve Litt At 06:05 AM 12/09/1999 +1100, Hansen, Craig D. wrote:>Samba Techs, >***Question*** >Can you prevent file permission problems on Samba mounts? > > I have Samba 2.0.5a loaded on our SUN SPARCcenter 2000's and our HP-UX >9000's and I have had a file permission problem ever since 1.9.8 wasinstalled>way back when. Every once in a while we have a situation where someonecopies a>file from we'll say /info8/pub/word.document, to there personal directory,edits>the file and pastes it back to it's original location, and when anotherperson>from "the same group" tries to access the file, there permissions aredenied. I>have spent many many hours looking into this issue and I cannot come upwith a>solution. Here are a few things I have tried: > >1. Change the default umask on the UNIX machine to 0000 so that it would quit >taking away the "write" permission. >2. Set a sticky bit to particular directories >3. Upgraded to a 2.0 version and update the smb.conf file to be set up as a >share (example below) > >[info8] > comment = Public Directory > path = /info8/pub > browsable = yes > writeable = yes > valid users = @exec @chc > write list = @exec @chc > create mask = 777 > directory mask = 777 > map archive = yes > map system = yes > map hidden = yes > veto oplock files = /*.dbm/*.htm/ > >***Question*** >To make a file-share work does it have to be "name specific". For exampleis it>alright for the mount to be called [info8] or does it have to saysomething like>[first-share]. Because with the setup I have above, which I created be a >file-share to prevent the permission problems, still isn't fixing theproblem!> >I even looked through your FAQ list on the Samba website and found EricPraetzel>that has had the same problems. I emailed him to see if he ever found afix but>he said that no one had suggested anything that worked. > >THANKS in advance for any support you can give me! > > Best Regards, > Craig Hansen >UNIX System Administrator >
Craig Hansen wrote: | Every once in a while we have a situation where someone copies a | file from we'll say /info8/pub/word.document, to there personal directory, | edits the file and pastes it back to it's original location, and when | another person from "the same group" tries to access the file, their | permissions are denied. This is similar to a recurring problem with Win apps: | Many Windows applications rename their data files to datafile.bak and | create new ones, thus changing their ownership and permissions so that | members of the same Unix group can't edit them. Setting force create | mask = 0660 will keep the new file editable by members of the group. | see http://www.oreilly.com/catalog/samba/chapter/book/ch05_03.html If you force group permissions on, and your Unix preserves the group, you'll be fine. If not, you may have to use a "force group" option on that share, so the files there always belong to the same group. --dave (madly blowing my own horn) c-b -- David Collier-Brown, | Always do right. This will gratify some people 185 Ellerslie Ave., | and astonish the rest. -- Mark Twain Willowdale, Ontario | http://www.oreilly.com/catalog/samba/author.html Work: (905) 415-2849 Home: (416) 223-8968 Email: davecb@canada.sun.com
Hi ! I successfully joined my samba 2.2.5 serwer to nt domain - i also use winbindd - everything should works ok. I got problem when i try to "take ownership", change ownership and modes from nt station. I am logged as domain admin - admin - and i got communicate: Unable to take ownership because the account "SRUBKA\admin" could not be accessed on the remote machine due to the following error: The account could not be found. So i tryed to make that account from NT on SRUBKA - through user manager. - error said: access is denied. I also cant change default permissions on share made on SRUBKA through server manager - access is denied. I got proper entiers in /etc/smbusers root = admin Administrator linux 2.4.18 with acls samba 2.2.5 rh7.2 ----------------------------------------------------------------------- Zobacz Mi?dzynarodowy Turniej Tenisowy IDEA PROKOM OPEN on line! Kliknij! < http://ideaprokomopen.wp.pl >