Re: [CentOS] Samba Question
Rajagopal Swaminathan wrote: > Greetings, > > There is a requirement of Samba server with the following specification: > > There are two groups: Designers, Draftsmen > > The share folder hierarchy is Project-->Final > > Now the Designers groups should have rw rights for Projects and subfolders > > The draghtsmen should be able to upload only files (not folders) to > Final subfolder. They are not allowed to modify/delete anything > anywhere. They will not have any permission in project folder > > any ideas? > You should be able to do that with a inotify script running in the background. Install inotify-tools from rpmforge, manpage has some examples to get you started. Probably need two dirs to work with: files are dumped into "upload", processed by inotify, moved to "final". -- tkb ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Samba Question
Rajagopal Swaminathan wrote: > Greetings, > > There is a requirement of Samba server with the following specification: > > There are two groups: Designers, Draftsmen > > The share folder hierarchy is Project-->Final > > Now the Designers groups should have rw rights for Projects and subfolders > > The draghtsmen should be able to upload only files (not folders) to > Final subfolder. They are not allowed to modify/delete anything > anywhere. They will not have any permission in project folder > > any ideas? For anything resembling unix filesystem semantics, being able to create and delete files depends on the permissions of the containing directory, although you can constrain deletions to files that you own (the way /tmp works, for example). If can't require a designer to do the move/copy from project to final you might want to look at a revision control system like subversion or a workflow (and more) system like Alfresco where you have greater control over the operations. Subversion saves every revision so even if you delete or modify something you can recall earlier versions. Alfreso can present web/ftp/smb/nfs shares but with some programmed logic controlling who can see/do what. -- Les Mikesell lesmikes...@gmail.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Samba Question
> Now the Designers groups should have rw rights for Projects and subfolders > > The draghtsmen should be able to upload only files (not folders) to > Final subfolder. They are not allowed to modify/delete anything > anywhere. They will not have any permission in project folder > > any ideas? > Further to Johnny's post, you can get what you want with ZFS. ZFS supports nfs4 acls which are quite close to NTFS acls. OpenSolaris is probably your next port of call if you do not want another Windows server. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Samba Question
Rajagopal Swaminathan wrote: > Greetings, > > There is a requirement of Samba server with the following specification: > > There are two groups: Designers, Draftsmen > > The share folder hierarchy is Project-->Final > > Now the Designers groups should have rw rights for Projects and subfolders > > The draghtsmen should be able to upload only files (not folders) to > Final subfolder. They are not allowed to modify/delete anything > anywhere. They will not have any permission in project folder > > any ideas? The permissions you ask for are likely not possible within CentOS (at least not exactly the way you specify them). You can add ACL permissions to the ext3 file system and use that with samba ... but with these controls, you have read (r), write(w), and execute (x) permissions. There are no ways to allow creating files and not folders ... also, if you can create files, you can delete them. The tool setfacl and getfacl can be used to set permissions. This is a good article to start with: http://aisalen.wordpress.com/2007/08/10/acls-on-samba/ Here are a couple more: http://www.centos.org/docs/5/html/Deployment_Guide-en-US/ch-acls.html You will have to also decide HOW you want to integrate this machine into other infrastructure. If you already have some kind of Directory Service (the newer Widows Active Directory Services, Windows NT type Directory control, LDAP on Linux, Red Hat Directory Server, etc.). You will likely want to make same talk to that service, whatever it is. This is a 2 step process ... set up and get working ACLs, then set up and get working samba (this part will depend on what you are integrating with). signature.asc Description: OpenPGP digital signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Samba Question
Greetings, There is a requirement of Samba server with the following specification: There are two groups: Designers, Draftsmen The share folder hierarchy is Project-->Final Now the Designers groups should have rw rights for Projects and subfolders The draghtsmen should be able to upload only files (not folders) to Final subfolder. They are not allowed to modify/delete anything anywhere. They will not have any permission in project folder any ideas? Thanks and Regards Rajagopal ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Samba Question
On Fri, 2009-05-22 at 20:37 +0200, Fabian Arrotin wrote: > Bo Lynch wrote: > > Hopefully very easy question to answer. I am trying to migrate data of of > > a samba server that is using winbind joined to a windows domain to another > > box. What samba or winbind files do I need so that this will resolve to > > names rather than UID and GID. For example > > drwxr-x--- 1049 10926 10005 36864 May 15 11:46 Student > > > > > > If you mean that you migrate data from one samba server to another *non* > samba machine it depends how your newly machine is/will be configured. > Is the samba domain ADS based ? have you used the idmap_rid feature ? (a > *must* when having multiple linux/unix machines using winbind in a AD > domain to have a consistent id/sid mapping accross all the samba > machines instead of the 'first come, first serve' id from from idmap pool) . > If not, don't forget that even if you configure winbind/samba the same > way it was on the old machine, the uid/gid map will never be the same > (except when using idmap_rid directly) > So my advice is just to backup the permissions on the old machine (with > getfacl) , rsync the data, join the new machine to the domain, and > restores permissions back (with setfacl --restore) --- What about the Old Samba SID Number? He will need that also. There is a whole section of a couple pages explaining on how to do this in "Samba 3 Howto.pdf" from samba.org. He is much better off reading it himself than anyone trying to explain it to him. He also needs to take into consideration of my previous post to him if that is the case also. JohnStanley ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Samba Question
Bo Lynch wrote: > Hopefully very easy question to answer. I am trying to migrate data of of > a samba server that is using winbind joined to a windows domain to another > box. What samba or winbind files do I need so that this will resolve to > names rather than UID and GID. For example > drwxr-x--- 1049 10926 10005 36864 May 15 11:46 Student > > If you mean that you migrate data from one samba server to another *non* samba machine it depends how your newly machine is/will be configured. Is the samba domain ADS based ? have you used the idmap_rid feature ? (a *must* when having multiple linux/unix machines using winbind in a AD domain to have a consistent id/sid mapping accross all the samba machines instead of the 'first come, first serve' id from from idmap pool) . If not, don't forget that even if you configure winbind/samba the same way it was on the old machine, the uid/gid map will never be the same (except when using idmap_rid directly) So my advice is just to backup the permissions on the old machine (with getfacl) , rsync the data, join the new machine to the domain, and restores permissions back (with setfacl --restore) -- -- Fabian Arrotin idea=`grep -i clue /dev/brain` test -z "$idea" && echo "sorry, init 6 in progress" || sh ./answer.sh ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Samba Question
On Thu, 2009-05-21 at 15:39 -0400, Toby Bluhm wrote: > > >>> The situation I'm in is that this box is joining to a win2000 PDC using > >>> samba+winbind for setting permissions on files and dir with domain > >>> users/groups. When I do a ls -l I just see the uid or gid instead of the > >>> domainame+_user domainname+group which is causing samba not to know who > >>> owns the file. > >>> > >> Is winbind added to the appropriate fields in nsswitch.conf? > >> > >> -- > > > > > > Yes > > > > > > > Is wbind running? Does any of the wbinfo commands give what you expect? Hey what is winbindd need for? I don't need it! [global] workgroup = yourstruly.local password server = yourstruly.local realm = YOURSTRULY.LOCAL security = ads idmap uid = 16777216-33554431 idmap gid = 16777216-33554431 template shell = /bin/false winbind use default domain = false winbind offline logon = false ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Samba Question
On Thu, 2009-05-21 at 14:48 -0400, Bo Lynch wrote: > On Thu, May 21, 2009 2:43 pm, JohnS wrote: > > > > On Thu, 2009-05-21 at 14:16 -0400, Bo Lynch wrote: > >> Hopefully very easy question to answer. I am trying to migrate data of > >> of > >> a samba server that is using winbind joined to a windows domain to > >> another > >> box. What samba or winbind files do I need so that this will resolve to > >> names rather than UID and GID. For example > >> drwxr-x--- 1049 10926 10005 36864 May 15 11:46 Student > >> > >> Thanks > > -- > > Migrate what data exactly? Is winbindd/samba your domain controller or > > is it on a Active Directory Server? > > > > Caveat is you don't need winbindd. If you using winbind with AD then > > save your *.tdb files. Depends on your situation totally. Kerberos cache > > come to mind also. You smb.conf also. Just to migrate user data none of > > the above is needed. This answer you ? ?. As far as I know UID and GID > > is the only way to inter operate with AD... > > > > JohnStanley > > > > The situation I'm in is that this box is joining to a win2000 PDC using > samba+winbind for setting permissions on files and dir with domain > users/groups. When I do a ls -l I just see the uid or gid instead of the > domainame+_user domainname+group which is causing samba not to know who > owns the file. --- To be truthfull it sounds like the Machine SID has been changed or a domain added and deleted on the AD server. Can you from the AD server in AD Users and Groups confirm the same thing from a mapped share by looking at the user listed in it? Of cousre this required the Samba host to have the drive mounted with the acl option. JohnStanley ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Samba Question
>>> The situation I'm in is that this box is joining to a win2000 PDC using >>> samba+winbind for setting permissions on files and dir with domain >>> users/groups. When I do a ls -l I just see the uid or gid instead of the >>> domainame+_user domainname+group which is causing samba not to know who >>> owns the file. >>> >> Is winbind added to the appropriate fields in nsswitch.conf? >> >> -- > > > Yes > > Is wbind running? Does any of the wbinfo commands give what you expect? -- tkb ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Samba Question
On Thu, May 21, 2009 3:33 pm, Toby Bluhm wrote: > Bo Lynch wrote: >> On Thu, May 21, 2009 2:43 pm, JohnS wrote: >>> On Thu, 2009-05-21 at 14:16 -0400, Bo Lynch wrote: Hopefully very easy question to answer. I am trying to migrate data of of a samba server that is using winbind joined to a windows domain to another box. What samba or winbind files do I need so that this will resolve to names rather than UID and GID. For example drwxr-x--- 1049 10926 10005 36864 May 15 11:46 Student Thanks >>> -- >>> Migrate what data exactly? Is winbindd/samba your domain controller or >>> is it on a Active Directory Server? >>> >>> Caveat is you don't need winbindd. If you using winbind with AD then >>> save your *.tdb files. Depends on your situation totally. Kerberos >>> cache >>> come to mind also. You smb.conf also. Just to migrate user data none of >>> the above is needed. This answer you ? ?. As far as I know UID and GID >>> is the only way to inter operate with AD... >>> >>> JohnStanley >>> >> >> The situation I'm in is that this box is joining to a win2000 PDC using >> samba+winbind for setting permissions on files and dir with domain >> users/groups. When I do a ls -l I just see the uid or gid instead of the >> domainame+_user domainname+group which is causing samba not to know who >> owns the file. >> > > Is winbind added to the appropriate fields in nsswitch.conf? > > -- Yes ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Samba Question
Bo Lynch wrote: > On Thu, May 21, 2009 2:43 pm, JohnS wrote: >> On Thu, 2009-05-21 at 14:16 -0400, Bo Lynch wrote: >>> Hopefully very easy question to answer. I am trying to migrate data of >>> of >>> a samba server that is using winbind joined to a windows domain to >>> another >>> box. What samba or winbind files do I need so that this will resolve to >>> names rather than UID and GID. For example >>> drwxr-x--- 1049 10926 10005 36864 May 15 11:46 Student >>> >>> Thanks >> -- >> Migrate what data exactly? Is winbindd/samba your domain controller or >> is it on a Active Directory Server? >> >> Caveat is you don't need winbindd. If you using winbind with AD then >> save your *.tdb files. Depends on your situation totally. Kerberos cache >> come to mind also. You smb.conf also. Just to migrate user data none of >> the above is needed. This answer you ? ?. As far as I know UID and GID >> is the only way to inter operate with AD... >> >> JohnStanley >> > > The situation I'm in is that this box is joining to a win2000 PDC using > samba+winbind for setting permissions on files and dir with domain > users/groups. When I do a ls -l I just see the uid or gid instead of the > domainame+_user domainname+group which is causing samba not to know who > owns the file. > Is winbind added to the appropriate fields in nsswitch.conf? -- tkb ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Samba Question
On Thu, May 21, 2009 2:43 pm, JohnS wrote: > > On Thu, 2009-05-21 at 14:16 -0400, Bo Lynch wrote: >> Hopefully very easy question to answer. I am trying to migrate data of >> of >> a samba server that is using winbind joined to a windows domain to >> another >> box. What samba or winbind files do I need so that this will resolve to >> names rather than UID and GID. For example >> drwxr-x--- 1049 10926 10005 36864 May 15 11:46 Student >> >> Thanks > -- > Migrate what data exactly? Is winbindd/samba your domain controller or > is it on a Active Directory Server? > > Caveat is you don't need winbindd. If you using winbind with AD then > save your *.tdb files. Depends on your situation totally. Kerberos cache > come to mind also. You smb.conf also. Just to migrate user data none of > the above is needed. This answer you ? ?. As far as I know UID and GID > is the only way to inter operate with AD... > > JohnStanley > The situation I'm in is that this box is joining to a win2000 PDC using samba+winbind for setting permissions on files and dir with domain users/groups. When I do a ls -l I just see the uid or gid instead of the domainame+_user domainname+group which is causing samba not to know who owns the file. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Samba Question
On Thu, 2009-05-21 at 14:16 -0400, Bo Lynch wrote: > What samba or winbind files do I need so that this will resolve to > names rather than UID and GID. For example > drwxr-x--- 1049 10926 10005 36864 May 15 11:46 Student --- Ok lets take away AD. To use regular name authentication. Add your users to the system and put them in a group. Then use smbpassd username. That way users are authenticated by USER_NAME. You will have to change the authentication mode to security = user in smb.conf. JohnStanley ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Samba Question
On Thu, 2009-05-21 at 14:16 -0400, Bo Lynch wrote: > Hopefully very easy question to answer. I am trying to migrate data of of > a samba server that is using winbind joined to a windows domain to another > box. What samba or winbind files do I need so that this will resolve to > names rather than UID and GID. For example > drwxr-x--- 1049 10926 10005 36864 May 15 11:46 Student > > Thanks -- Migrate what data exactly? Is winbindd/samba your domain controller or is it on a Active Directory Server? Caveat is you don't need winbindd. If you using winbind with AD then save your *.tdb files. Depends on your situation totally. Kerberos cache come to mind also. You smb.conf also. Just to migrate user data none of the above is needed. This answer you ? ?. As far as I know UID and GID is the only way to inter operate with AD... JohnStanley ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Samba Question
Hopefully very easy question to answer. I am trying to migrate data of of a samba server that is using winbind joined to a windows domain to another box. What samba or winbind files do I need so that this will resolve to names rather than UID and GID. For example drwxr-x--- 1049 10926 10005 36864 May 15 11:46 Student Thanks -- Bo Lynch ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Re: CentOS-Samba question
On Tue, Jun 3, 2008 at 4:16 PM, Ross Cavanagh <[EMAIL PROTECTED]> wrote: > MHR wrote: >>> >>> Vista will raise your disappointment level back up! >>> >> >> That was intended to include Vista - it sinks to a new low for >> Micro. Even SP1 made it worse. > > Funny article in regards to upgrading from Vista to XP. > > http://dotnet.org.za/codingsanity/archive/2007/12/14/review-windows-xp.aspx > ROTFLMAO! Thanks! mhr ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Re: CentOS-Samba question
MHR wrote: Vista will raise your disappointment level back up! That was intended to include Vista - it sinks to a new low for Micro. Even SP1 made it worse. Funny article in regards to upgrading from Vista to XP. http://dotnet.org.za/codingsanity/archive/2007/12/14/review-windows-xp.aspx ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS-Samba question
Robert wrote: It might be easier to give up.* For years, I had a single inkjet printer on my modest home network, physically connected to this machine. It works great once setup until something changes. (Versions of Windows and/or versions and/or flavors of Linux on another box.) A while back, I added a laser printer, choosing one that could go either parallel, USB or ethernet. I got out my crimpers, made a network cable and haven't looked back. What a pleasure! It was a breeze to set up and it's alway visible to any computer on the network. The point is, unless your time is virtually worthless, you might think about a print server. Netgear, D-link and Linksys all make them. BTW, my laser printer is a Brother HL-5250 DN and I'm pretty happy with it. Those mini print servers would save you a lot of time by the sound of it, if it's just the printer sharing that's the problem. Or if distance is not an issue, it could possibly be directly connected to one of the windows machines and shared from there. However, that would result in you having to leave the windows box on all the time for the printing to be enabled. Well, that's my 2 cents worth anyway, hope it helps. -Ross- ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Re: CentOS-Samba question
On Tue, Jun 3, 2008 at 2:30 PM, Scott Silva <[EMAIL PROTECTED]> wrote: > on 6-3-2008 1:00 PM MHR spake the following: >>> >>> On Mon, Jun 2, 2008 at 10:16 AM, John R Pierce >>> wrote: win9X has horrible network username habits...you need to determine what username its running as... dirty trick, log off, and the username should be in the login prompt, just hit enter to relogin with the same username and the same blank local password.. on the SAMBA server, create that username as a linux user, AND `smbuser -a username`, assign it a smb password. when win98 prompts for a password, thats the username it will use, you get no choice, and win98 should be able to 'save' that password (if you check said box on the login prompt), which causes it to be saved to a .pwd file (I think thats the name of the password cache). >> ::: >> >> PS: I have always said that I don't really hate Window$, I just prefer >> working in and on Unix/Linux. I don't think that's true any more, >> although I must say that of all the versions of Window$ I've ever >> used, XP is the least objectionable. >> > Vista will raise your disappointment level back up! > That was intended to include Vista - it sinks to a new low for Micro. Even SP1 made it worse. mhr ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Re: CentOS-Samba question
on 6-3-2008 1:00 PM MHR spake the following: On Mon, Jun 2, 2008 at 10:16 AM, John R Pierce wrote: win9X has horrible network username habits...you need to determine what username its running as... dirty trick, log off, and the username should be in the login prompt, just hit enter to relogin with the same username and the same blank local password.. on the SAMBA server, create that username as a linux user, AND `smbuser -a username`, assign it a smb password. when win98 prompts for a password, thats the username it will use, you get no choice, and win98 should be able to 'save' that password (if you check said box on the login prompt), which causes it to be saved to a .pwd file (I think thats the name of the password cache). More progress: It occurred to me that somewhere along the line I had not given my CentOS guest user smb access, so I ran smbpasswd and set the guest password to match its login password. When I went back to W98, I tried to add the network printer - it recognized the name (\\mhrichter\MPP1100) and asked for a password. I gave it the guest password, and it proceeded to try to install it. I put in the CD, went through all the (right) moves to install the driver, and then the moment of truth: W98 said I had to reboot. I knew I was in trouble. I rebooted, and, lo and behold, the printer was suddenly offline and unavailable (there was no change to the CentOS host or the printer at all). I deleted the printer to start over, but this time W98 said the printer was offline when I input the name and the password. W98 still can't see the network or any of the shares in the Network Neighborhood, but at least I can reach for it by name. Any doors or windows in this wall? Thanks. mhr PS: I have always said that I don't really hate Window$, I just prefer working in and on Unix/Linux. I don't think that's true any more, although I must say that of all the versions of Window$ I've ever used, XP is the least objectionable. Vista will raise your disappointment level back up! -- MailScanner is like deodorant... You hope everybody uses it, and you notice quickly if they don't signature.asc Description: OpenPGP digital signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS-Samba question
MHR wrote: On Mon, Jun 2, 2008 at 10:16 AM, John R Pierce <[EMAIL PROTECTED]> wrote: win9X has horrible network username habits...you need to determine what username its running as... dirty trick, log off, and the username should be in the login prompt, just hit enter to relogin with the same username and the same blank local password.. on the SAMBA server, create that username as a linux user, AND `smbuser -a username`, assign it a smb password. when win98 prompts for a password, thats the username it will use, you get no choice, and win98 should be able to 'save' that password (if you check said box on the login prompt), which causes it to be saved to a .pwd file (I think thats the name of the password cache). More progress: It occurred to me that somewhere along the line I had not given my CentOS guest user smb access, so I ran smbpasswd and set the guest password to match its login password. When I went back to W98, I tried to add the network printer - it recognized the name (\\mhrichter\MPP1100) and asked for a password. I gave it the guest password, and it proceeded to try to install it. I put in the CD, went through all the (right) moves to install the driver, and then the moment of truth: W98 said I had to reboot. I knew I was in trouble. I rebooted, and, lo and behold, the printer was suddenly offline and unavailable (there was no change to the CentOS host or the printer at all). I deleted the printer to start over, but this time W98 said the printer was offline when I input the name and the password. W98 still can't see the network or any of the shares in the Network Neighborhood, but at least I can reach for it by name. Any doors or windows in this wall? It might be easier to give up.* For years, I had a single inkjet printer on my modest home network, physically connected to this machine. It works great once setup until something changes. (Versions of Windows and/or versions and/or flavors of Linux on another box.) A while back, I added a laser printer, choosing one that could go either parallel, USB or ethernet. I got out my crimpers, made a network cable and haven't looked back. What a pleasure! It was a breeze to set up and it's alway visible to any computer on the network. The point is, unless your time is virtually worthless, you might think about a print server. Netgear, D-link and Linksys all make them. BTW, my laser printer is a Brother HL-5250 DN and I'm pretty happy with it. Thanks. mhr PS: I have always said that I don't really hate Window$, I just prefer working in and on Unix/Linux. I don't think that's true any more, although I must say that of all the versions of Window$ I've ever used, XP is the least objectionable. PPS: Yes, this is Window$ XP Pro (but I think it's still SP1), and 98 SE. It's still Window$, a Micro$oft product, which really says it all. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos -- POLITICS n. Strife of interests masquerading as a contest of principles --Ambrose Bierce ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS-Samba question
> On Mon, Jun 2, 2008 at 10:16 AM, John R Pierce <[EMAIL PROTECTED]> wrote: >> >> win9X has horrible network username habits...you need to determine what >> username its running as... dirty trick, log off, and the username should be >> in the login prompt, just hit enter to relogin with the same username and >> the same blank local password.. on the SAMBA server, create that username >> as a linux user, AND `smbuser -a username`, assign it a smb password. when >> win98 prompts for a password, thats the username it will use, you get no >> choice, and win98 should be able to 'save' that password (if you check said >> box on the login prompt), which causes it to be saved to a .pwd >> file (I think thats the name of the password cache). >> More progress: It occurred to me that somewhere along the line I had not given my CentOS guest user smb access, so I ran smbpasswd and set the guest password to match its login password. When I went back to W98, I tried to add the network printer - it recognized the name (\\mhrichter\MPP1100) and asked for a password. I gave it the guest password, and it proceeded to try to install it. I put in the CD, went through all the (right) moves to install the driver, and then the moment of truth: W98 said I had to reboot. I knew I was in trouble. I rebooted, and, lo and behold, the printer was suddenly offline and unavailable (there was no change to the CentOS host or the printer at all). I deleted the printer to start over, but this time W98 said the printer was offline when I input the name and the password. W98 still can't see the network or any of the shares in the Network Neighborhood, but at least I can reach for it by name. Any doors or windows in this wall? Thanks. mhr PS: I have always said that I don't really hate Window$, I just prefer working in and on Unix/Linux. I don't think that's true any more, although I must say that of all the versions of Window$ I've ever used, XP is the least objectionable. PPS: Yes, this is Window$ XP Pro (but I think it's still SP1), and 98 SE. It's still Window$, a Micro$oft product, which really says it all. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS-Samba question
On Mon, 2008-06-02 at 10:29 -0700, MHR wrote: > On Mon, Jun 2, 2008 at 10:16 AM, John R Pierce <[EMAIL PROTECTED]> wrote: > > > > win9X has horrible network username habits...you need to determine what > > username its running as... dirty trick, log off, and the username should be > > in the login prompt, just hit enter to relogin with the same username and > > the same blank local password.. on the SAMBA server, create that username > > as a linux user, AND `smbuser -a username`, assign it a smb password. when > > win98 prompts for a password, thats the username it will use, you get no > > choice, and win98 should be able to 'save' that password (if you check said > > box on the login prompt), which causes it to be saved to a .pwd > > file (I think thats the name of the password cache). > > > > > > does that make sense? > > Well, sort of, but we are talking about Micro$oft and Window$$$ here :-) > > Now that I've had some rest, that's pretty much what I was going to try next. > > Wish me luck! > > Thanks. > > mhr > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS-Samba question
John R Pierce wrote: MHR wrote: The 98 boot has an automatic (no password) logon. As I said, I can't win9X has horrible network username habits...you need to determine what username its running as... dirty trick, log off, and the username should be in the login prompt, just hit enter to relogin with the same username and the same blank local password.. on the SAMBA server, create that username as a linux user, AND `smbuser -a username`, assign it a smb password. when win98 prompts for a password, thats the username it will use, you get no choice, and win98 should be able to 'save' that password (if you check said box on the login prompt), which causes it to be saved to a .pwd file (I think thats the name of the password cache). It's username.PWL. Boot to dos or if you can stand it - safe mode & delete the users file. I remember doing that often for folks who constantly foobared their login. -- Toby Bluhm Alltech Medical Systems America, Inc. 30825 Aurora Road Suite 100 Solon Ohio 44139 440-424-2240 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS-Samba question
On Mon, Jun 2, 2008 at 10:16 AM, John R Pierce <[EMAIL PROTECTED]> wrote: > > win9X has horrible network username habits...you need to determine what > username its running as... dirty trick, log off, and the username should be > in the login prompt, just hit enter to relogin with the same username and > the same blank local password.. on the SAMBA server, create that username > as a linux user, AND `smbuser -a username`, assign it a smb password. when > win98 prompts for a password, thats the username it will use, you get no > choice, and win98 should be able to 'save' that password (if you check said > box on the login prompt), which causes it to be saved to a .pwd > file (I think thats the name of the password cache). > > > does that make sense? Well, sort of, but we are talking about Micro$oft and Window$$$ here :-) Now that I've had some rest, that's pretty much what I was going to try next. Wish me luck! Thanks. mhr ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS-Samba question
MHR wrote: The 98 boot has an automatic (no password) logon. As I said, I can't use the Network Neighborhood to see anything on the server - in fact, it can't even see the workgroup, even after I double checked all the setting. However, I can attempt to attach to resources, but, e.g., when I try to attach to my mpp1100 printer, it posts a password input window for resource \\mhrichter\IPC$, but I can't figure out which password, and none of the ones I tried works. win9X has horrible network username habits...you need to determine what username its running as... dirty trick, log off, and the username should be in the login prompt, just hit enter to relogin with the same username and the same blank local password.. on the SAMBA server, create that username as a linux user, AND `smbuser -a username`, assign it a smb password. when win98 prompts for a password, thats the username it will use, you get no choice, and win98 should be able to 'save' that password (if you check said box on the login prompt), which causes it to be saved to a .pwd file (I think thats the name of the password cache). does that make sense? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS-Samba question
On Mon, Jun 2, 2008 at 12:25 AM, MHR <[EMAIL PROTECTED]> wrote: > I have a couple of partial solutions. > : > > Unfortunately, this did nothing to help the remote Windows 98 boot, > which still can't see the network server or its resources. Also > unfortunately, the 98 boot is the more important one to have printer > access. (Don't ask.) > It was late last night and I forgot to include any useful information here. The 98 boot has an automatic (no password) logon. As I said, I can't use the Network Neighborhood to see anything on the server - in fact, it can't even see the workgroup, even after I double checked all the setting. However, I can attempt to attach to resources, but, e.g., when I try to attach to my mpp1100 printer, it posts a password input window for resource \\mhrichter\IPC$, but I can't figure out which password, and none of the ones I tried works. On the server side, I have (something like) this for my smbusers (I'm going from memory here, but it's not too hard): # root = administrator admin mark = mark guest = esther ruth guest smbguest nobody = pcguest (Yes, I have root access from the samba clients disabled.) The default login account is esther, but the passwords for guest and mark don't work, and no password also does not work. When I get home, I'll add an account for esther on the server, fix up the smbusers file and see what happens. Another anomaly - when I was logged into the XP boot as mark, I could not connect to the printer without specifying a password (with the "connect as another user" dodge), even though the passwords on both machines are the same. Ok, back to work. :-) Thanks, everyone, especially John. mhr ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] CentOS-Samba question
Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of MHR Sent: Sunday, June 01, 2008 6:34 PM To: CentOS mailing list Subject: Re: [CentOS] CentOS-Samba question On Sun, Jun 1, 2008 at 5:20 AM, John <[EMAIL PROTECTED]> wrote: > """If you logged on from the Windows Guest Account then you know it is > authenticating by the guest or nobody account that's on the Samba Server. > The previous config file I that I stuck in the mail for you will work > on a Windows Client machine providing there is sufficient name and ip > address translation. It will authenticate against the samba server "nobody" account. > IE, as in provide anonymous user name and password authentication so > the user will not have to enter a password. That is to get you going > on the right path. From there you will need to incorporate some type > of user mode authentication. You don't want the whole world to access it.""" Clarification: "my XP guest" is my VMWare Windows XP guest OS running on top of my CentOS host. I use a known account to logon from the XP guest OS to the CentOS host and all works just fine, except that I changed last night, or recently, and the guest XP can no longer see the host "machine" in the workgroup. This is a very minor problem, unless there's some connection we aren't talking about yet. . > OK, you don't need to just open the Workgroup. All you really need to > do is just add the share on the Samba server. Actually, I think it was when either 5.0 or 5.1 came out that the sample config file you sent, with a few minor differences, was posted and I have a copy on my machine. I used that, in part, to construct the config file I am using. Today, I am trying to test with the remote XP machine, and the results get weirder (to me). I can now see the CentOS server in the XP's network under the workgroup, but I can't open the host for access to either the shares or the printers. I can still ping the server, I can even open a putty window to it and login just fine. But, now, I can no longer ping the XP machine from my server (!!!) at all. I am running zonealarm (free) on the XP machine and am wondering if there might be a problem there. Reason I mention this is that ZA used to allow control of access by program and by machine, but now it only offers program control (which really stinks - any other free Win$$$ firewalls worth a hoot out there?). So I can't even tell if my server is getting blocked by the firewall any more. Foo. Mhr - Actually my opinion on that is is to trash the ZoneAlarm Firewall. Use the firewall that came with windows. It actually works just as good. That is if there is someone that knows how to config it. For your sake. The heck of it Disable all firewalls in all clients and servers your using and see what type of access you have to the sambaserver. See your fighting two firewalls at once on your DomU and DomO. If I remember right ports 138 and 139 have to be open on the Win98 clients they will work over NetBios where as xp will work over TCP/IP. JohnStanley ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS-Samba question
I have a couple of partial solutions. For the remote Windows XP boot: 1) The firewall (ZoneAlarm) was blocking all pings. Why? I have no idea. According to its program data, ping was enabled for local and internet access, and the "allow server" fields were unset (meaning that it was supposed to ask). I solved this by turning off ZoneAlarm. 2) I still could not get through to the server, so I poked around on the web. I kept getting a "ICMP host mhrichter unreachable - admin prohibited,) and I found one Q&A that suggested flushing the iptables, so I did. Voila - the shares and printers are now available across the network. Unfortunately, this did nothing to help the remote Windows 98 boot, which still can't see the network server or its resources. Also unfortunately, the 98 boot is the more important one to have printer access. (Don't ask.) Any other ideas? Thanks. mhr ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS-Samba question
On Sun, Jun 1, 2008 at 5:20 AM, John <[EMAIL PROTECTED]> wrote: > """If you logged on from the Windows Guest Account then you know it is > authenticating by the guest or nobody account that's on the Samba Server. > The previous config file I that I stuck in the mail for you will work on a > Windows Client machine providing there is sufficient name and ip address > translation. It will authenticate against the samba server "nobody" account. > IE, as in provide anonymous user name and password authentication so the > user will not have to enter a password. That is to get you going on the > right path. From there you will need to incorporate some type of user mode > authentication. You don't want the whole world to access it.""" Clarification: "my XP guest" is my VMWare Windows XP guest OS running on top of my CentOS host. I use a known account to logon from the XP guest OS to the CentOS host and all works just fine, except that I changed last night, or recently, and the guest XP can no longer see the host "machine" in the workgroup. This is a very minor problem, unless there's some connection we aren't talking about yet. . > OK, you don't need to just open the Workgroup. All you really need to do is > just add the share on the Samba server. Actually, I think it was when either 5.0 or 5.1 came out that the sample config file you sent, with a few minor differences, was posted and I have a copy on my machine. I used that, in part, to construct the config file I am using. Today, I am trying to test with the remote XP machine, and the results get weirder (to me). I can now see the CentOS server in the XP's network under the workgroup, but I can't open the host for access to either the shares or the printers. I can still ping the server, I can even open a putty window to it and login just fine. But, now, I can no longer ping the XP machine from my server (!!!) at all. I am running zonealarm (free) on the XP machine and am wondering if there might be a problem there. Reason I mention this is that ZA used to allow control of access by program and by machine, but now it only offers program control (which really stinks - any other free Win$$$ firewalls worth a hoot out there?). So I can't even tell if my server is getting blocked by the firewall any more. Foo. mhr ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] CentOS-Samba question
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of MHR Sent: Sunday, June 01, 2008 4:01 AM To: CentOS mailing list Subject: Re: [CentOS] CentOS-Samba question On Sat, May 31, 2008 at 5:55 PM, John <[EMAIL PROTECTED]> wrote: > > I think your reading the wrong guide, try this one and this has > traversed on long enough. Almost Two weeks now. 1) This has been going on, on and off, for a lot longer than two weeks. 2) I was hoping that it would be considered "long enough" when the problem is solved. 3) My samba configuration is only a part of the problem, and it works for my Windows XP guest, even with all the tweaks I've added/used. The problem also has (a lot) to do with the Windows configuration, which may not be perfect, since I used the "wrong guide" to set it up and check it, but nothing here even addresses that. But thank you for your opinion. > Samba 3 By Example: > http://us3.samba.org/samba/docs/man/Samba3-ByExample/ > > Samba 3 How To: > http://us3.samba.org/samba/docs/Samba3-HOWTO.pdf > http://us3.samba.org/samba/docs/man/Samba3-HOWTO/ These were where I started out, and how I got what I have to work with my WXP guest in the first place. I was using the other guide as an additional resource - it /is/ on the samba site, after all, and they don't appear to have a step-by-step guide for samba 3+. Thanks. Mhr - Hrmm. The Samba 3 guide covers all Samba Versions 3 and greater. There are only minimal differences between the versions. Some options are being phased out though so keep that in mind. Do this just for kicks. Take your samba config file and rename it. Take what I posted in email to you and use it for the main samba config fig file. You will only need to change the directory paths to match yours. Try one share at a time. You should be able to access it (the samba server share) with any windows xp user account, wether it's a guest account or not. You will need the correct chmod and chown with the -R option on the shared folder. Sometime when using the GUI in changing the folder and file permissions, it want allow Recursiveness to the folder thus use the shell command to do it. johnstanley. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] CentOS-Samba question
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of MHR Sent: Sunday, June 01, 2008 5:40 AM To: CentOS mailing list Subject: Re: [CentOS] CentOS-Samba question I just found something interesting. I brought up my XP guest, and it had no trouble at all connecting to the shares, but it couldn't open the workgroup at all and the printer had become disconnected. I could not reconnect through the workgroup (duh), but if I just input the network name, the printer came up just fine. --- """If you logged on from the Windows Guest Account then you know it is authenticating by the guest or nobody account that's on the Samba Server. The previous config file I that I stuck in the mail for you will work on a Windows Client machine providing there is sufficient name and ip address translation. It will authenticate against the samba server "nobody" account. IE, as in provide anonymous user name and password authentication so the user will not have to enter a password. That is to get you going on the right path. From there you will need to incorporate some type of user mode authentication. You don't want the whole world to access it.""" So: I can connect to my shares from the XP guest, and I can connect to my printer from the XP guest, I just can't open the workgroup (this is relatively new, like, since I began messing with the smb.conf file in the last two weeks). Don't know exactly what that means, but I haven't given up yet. Tomorrow I'll dig in more on the remote machine and see where that all takes me. Any helpful suggestions still welcome :-) Mhr -- OK, you don't need to just open the Workgroup. All you really need to do is just add the share on the Samba server. Here we go like this; Tools | Map Network Drive "or" Right Click My Computer and Select Map Network Drive. What I believe you concern is about "Browsing the Network"? You don't need to Browse the network in order to connect to the shares. But you will have to add each share you have on the samba server to the windows clients. Now if your really concerned about eyeball browsing the network (I am not making fun of you either) Go To Start | Run |, and in the run command box type "net use \\samba_server_name_here\". Then they should, I say should again be in Network Neighborhood. Also the your Win98 client may need to set up with an LMHOSTS file and using NetBios/tcpip. They can be configured to use the Samba servers "WIN Server" to provide hostname to ip address translation. It would really be justafiable to have a DNS Server on the network to do the translation. Another thing that comes to mind is that the Win98 clients are not authenticating against the given user account. Now why is that? If I recall right there is an issue with password encryption. I believe it's mentioned in the earlier stated links I gave you and that would be in one of the downloadable PDF Files. Wish you Luck, JohnStanley ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS-Samba question
I just found something interesting. I brought up my XP guest, and it had no trouble at all connecting to the shares, but it couldn't open the workgroup at all and the printer had become disconnected. I could not reconnect through the workgroup (duh), but if I just input the network name, the printer came up just fine. So: I can connect to my shares from the XP guest, and I can connect to my printer from the XP guest, I just can't open the workgroup (this is relatively new, like, since I began messing with the smb.conf file in the last two weeks). Don't know exactly what that means, but I haven't given up yet. Tomorrow I'll dig in more on the remote machine and see where that all takes me. Any helpful suggestions still welcome :-) mhr ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS-Samba question
On Sat, May 31, 2008 at 5:55 PM, John <[EMAIL PROTECTED]> wrote: > > I think your reading the wrong guide, try this one and this has traversed on > long enough. Almost Two weeks now. 1) This has been going on, on and off, for a lot longer than two weeks. 2) I was hoping that it would be considered "long enough" when the problem is solved. 3) My samba configuration is only a part of the problem, and it works for my Windows XP guest, even with all the tweaks I've added/used. The problem also has (a lot) to do with the Windows configuration, which may not be perfect, since I used the "wrong guide" to set it up and check it, but nothing here even addresses that. But thank you for your opinion. > Samba 3 By Example: > http://us3.samba.org/samba/docs/man/Samba3-ByExample/ > > Samba 3 How To: > http://us3.samba.org/samba/docs/Samba3-HOWTO.pdf > http://us3.samba.org/samba/docs/man/Samba3-HOWTO/ These were where I started out, and how I got what I have to work with my WXP guest in the first place. I was using the other guide as an additional resource - it /is/ on the samba site, after all, and they don't appear to have a step-by-step guide for samba 3+. Thanks. mhr ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] CentOS-Samba question
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of MHR Sent: Saturday, May 31, 2008 2:57 PM To: CentOS mailing list Subject: Re: [CentOS] CentOS-Samba question On Tue, May 27, 2008 at 5:17 PM, MHR <[EMAIL PROTECTED]> wrote: > On Tue, May 27, 2008 at 4:51 PM, Christopher Chan > <[EMAIL PROTECTED]> wrote: Okay, I went through the Samba Guide at http://us3.samba.org/samba/docs/using_samba. I read chapters 1, 2 & 3 fairly thoroughly, and I'm going through 12 (troubleshooting) now. -- I think your reading the wrong guide, try this one and this has traversed on long enough. Almost Two weeks now. Below included is also a work (BASIC) Configuration file to get you going. Then you will need to go on and experiment from there. This configuration below will work with a "forced user = use_name". Or change the security mode to user and create accounts on the samba server for the windows clients. Those accounts **HAVE** to mach the Window user and password logons! Please read the comented sections. Hope All This Helps and the Formatting Stays, JohnStanley Samba 3 By Example: http://us3.samba.org/samba/docs/man/Samba3-ByExample/ Samba 3 How To: http://us3.samba.org/samba/docs/Samba3-HOWTO.pdf http://us3.samba.org/samba/docs/man/Samba3-HOWTO/ # Any line which starts with a ; (semi-colon) or a # (hash) # is a comment and is ignored. In this example we will use a # # for commentry and a ; for parts of the config file that you # may wish to enable # # NOTE: Whenever you modify this file you should run the command "testparm" # to check that you have not made any basic syntactic errors. # #--- # SELINUX NOTES: Pay Attention Here # # If you want to use the useradd/groupadd family of binaries please run: # setsebool -P samba_domain_controller on # # If you want to share home directories via samba please run: # setsebool -P samba_enable_home_dirs on # # If you create a new directory you want to share you should mark it as # "samba-share_t" so that selinux will let you write into it. # Make sure not to do that on system directories as they may already have # been marked with othe SELinux labels. # # Use ls -ldZ /path to see which context a directory has # # Set labels only on directories you created! # To set a label use the following: chcon -t samba_share_t /path # # If you need to share a system created directory you can use one of the # following (read-only/read-write): # setsebool -P samba_export_all_ro on # or # setsebool -P samba_export_all_rw on # # If you want to run scripts (preexec/root prexec/print command/...) please # put them into the /var/lib/samba/scripts directory so that smbd will be # allowed to run them. # Make sure you COPY them and not MOVE them so that the right SELinux context # is applied, to check all is ok use restorecon -R -v /var/lib/samba/scripts # #-- # #=== Global Settings = [global] #Below line is an Option... socket options = TCP_NODELAY # --- Netwrok Related Options - # # workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH # # server string is the equivalent of the NT Description field # # netbios name can be used to specify a server name not tied to the hostname # # Interfaces lets you configure Samba to use multiple interfaces # If you have multiple network interfaces then you can list the ones # you want to listen on (never omit localhost) # # Hosts Allow/Hosts Deny lets you restrict who can connect, and you can # specifiy it as a per share option as well # workgroup = Workgroup server string = Samba Server Version %v ; netbios name = MYSERVER ; interfaces = lo eth0 192.168.0.1/24 192.168.0.254/24 ; hosts allow = 127. 192.168.0. 192.168.0. # --- Logging Options - # # Log File let you specify where to put logs and how to split them up. # # Max Log Size let you specify the max size log files should reach # logs split per machine log file = /var/log/samba/%m.log # max 50KB per log file, then rotate max log size = 50 # --- Standalone Server Options # # Scurity can be set to user, share(deprecated) or server(deprecated) # # Backend to store user information in. New installations should # use either tdbsam or ldapsam. smbpasswd is available for backwards # compatibility. tdbsam requires no further configuration. #When commented out Samba reverts to share mode ah ha! security = share # passdb backend = tdbsam # --- Domain Members Options # # Security must be set to domain or ads (Active Dire
Re: [CentOS] CentOS-Samba question
On Tue, May 27, 2008 at 5:17 PM, MHR <[EMAIL PROTECTED]> wrote: > On Tue, May 27, 2008 at 4:51 PM, Christopher Chan > <[EMAIL PROTECTED]> wrote: >> >> Try adding 'guest ok = yes' to the printer share configuration. >> > I will - thanks. > I did - no change. >> ...I think you need to pick a bit more on Windows networking...more reading >> of the books/documentation provided with samba should help. > Okay, I went through the Samba Guide at http://us3.samba.org/samba/docs/using_samba. I read chapters 1, 2 & 3 fairly thoroughly, and I'm going through 12 (troubleshooting) now. One small problem is that this is for Samba 2.2 and I'm on 3.0.25. Be that as it may Let me start up front with this: both Windows boots can ping the CentOS Samba Server. Neither one can see it in their M$ Network. I went through chapter 3 step by step for both the W98 and WXP boots, and I can't see my C5.1 from W98 at all, and I can't see anything that's on the C5.1 from WXP. I started going through the troubleshooting chapter, and I got up to this point with W98: 'net use * \\mhrichter\tmp' hangs for about a minute, then comes back with an Error 59 - unknown error. In the log, I see this (I did it twice): [EMAIL PROTECTED] samba]# cat mhrichter.log [2008/05/31 10:54:03, 1] smbd/service.c:make_connection_snum(1033) mhrichter (192.168.0.100) connect to service tmp initially as user nobody (uid=99, gid=99) (pid 19903) [2008/05/31 10:54:07, 1] smbd/service.c:close_cnum(1230) mhrichter (192.168.0.100) closed connection to service tmp [EMAIL PROTECTED] samba]# grep nobody /etc/passwd nobody:x:99:99:Nobody:/:/sbin/nologin nfsnobody:x:4294967294:4294967294:Anonymous NFS User:/var/lib/nfs:/sbin/nologin [EMAIL PROTECTED] samba]# In case you don't remember, the tmp share is configured thus: [tmp] comment = Temporary file space path = /tmp writeable = yes guest ok = yes So, in theory, anyone should be able to see it, read and write to it, etc. (Yes, I know there's a potential space problem here, but these machines are all on a private subnet, I'm the only one who has a clue how to really make use of them, and there's about 35GB left on /, including /tmp.) This particular problem is not addressed in the guide, so I'm stuck (again). I'll be trying the WXP boot in a few minutes, where my logon /should/ work (but doesn't) and I'll see what turns up in the log for that. But, in the mean time, any ideas? Thanks. mhr ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS-Samba question
On Tue, May 27, 2008 at 4:51 PM, Christopher Chan <[EMAIL PROTECTED]> wrote: > > Try adding 'guest ok = yes' to the printer share configuration. > I will - thanks. > ...I think you need to pick a bit more on Windows networking...more reading > of the books/documentation provided with samba should help. Definitely - I'm working on that in my copious (gales of laughter) spare time, along with the other two or three hundred projects :-) mhr ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS-Samba question
MHR wrote: On Sun, May 25, 2008 at 3:38 AM, Christopher Chan <[EMAIL PROTECTED]> wrote: Do they should up if you run the command below in the Linux host? smbclient -L //localhost I'm guessing you meant "show up" and yes, everything looks normal, but only if I use a -U option with a known user. Is there a way to allow printer access without a user login? Try adding 'guest ok = yes' to the printer share configuration. Not even the home share? Have you created a machine account for the XP guest? Not sure what a "machine account" is - there is a user account on the host that has the same user name and password as the one on the guest. ...I think you need to pick a bit more on Windows networking...more reading of the books/documentation provided with samba should help. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS-Samba question
On Sun, May 25, 2008 at 3:38 AM, Christopher Chan <[EMAIL PROTECTED]> wrote: > > Do they should up if you run the command below in the Linux host? > > smbclient -L //localhost > I'm guessing you meant "show up" and yes, everything looks normal, but only if I use a -U option with a known user. Is there a way to allow printer access without a user login? > Not even the home share? Have you created a machine account for the XP > guest? Not sure what a "machine account" is - there is a user account on the host that has the same user name and password as the one on the guest. Thanks. mhr ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS-Samba question
On Sun, May 25, 2008 at 7:51 AM, John <[EMAIL PROTECTED]> wrote: > > Simple Configuration... Your Global is wrong. This is for sane simple > Printing! Read the samba howto's on samba.org. > I have - several times. This is what was working for my host-guest combo. > [global] > printing = bsd > load printers = yes > Should I assume that this is in addition to what I already have, or does it replace something? > [printers] > path = /var/spool/samba > printable = yes > public = yes > writable = no Seems harmless enough My guest WinXP can still print, so I'll go and see how that affected my other Win machine. Thanks. mhr ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] CentOS-Samba question
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of MHR Sent: Saturday, May 24, 2008 4:00 PM To: CentOS mailing list Subject: [CentOS] CentOS-Samba question My main system is a CentOS 5.1 64-bit desktop with gobs of disk and a couple of printers attached that work just fine. I have it set up with samba so my VMWare guest Windows XP can access most of the files and the printers. But, when I try to connect to the printers from a remote machine that has a Win98/WinXP dual boot, I can't see the printers at all. Both 98/XP can ping the host by IP address or by name (I've updated the host on both and the lmhost file on the 98 boot), but the 98 boot can't see the network at all, and the XP boot can't see anything on my CentOS box, although it at least sees that the box is there. Here's my smb.conf: # Global parameters [global] workgroup = MARKHOME domain master = yes preferred master = yes server string = Samba Server printcap name = /etc/printcap cups options = raw log file = /var/log/samba/%m.log max log size = 50 password server = none username map = /etc/samba/smbusers socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 wins support = yes dns proxy = no idmap uid = 16777216-33554431 idmap gid = 16777216-33554431 template shell = /bin/false winbind use default domain = no [homes] comment = Home Directories valid users = %S path = /home/%u create mask = 664 directory mask = 775 writeable = yes browseable = yes [tmp] comment = Temporary file space path = /tmp writeable = yes guest ok = yes [printers] comment = All Printers path = /var/spool/samba browseable = yes printable = yes What am I missing? Thanks. Mhr -- Simple Configuration... Your Global is wrong. This is for sane simple Printing! Read the samba howto's on samba.org. [global] printing = bsd load printers = yes [printers] path = /var/spool/samba printable = yes public = yes writable = no ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS-Samba question
MHR wrote: My main system is a CentOS 5.1 64-bit desktop with gobs of disk and a couple of printers attached that work just fine. I have it set up with samba so my VMWare guest Windows XP can access most of the files and the printers. But, when I try to connect to the printers from a remote machine that has a Win98/WinXP dual boot, I can't see the printers at all. Do they should up if you run the command below in the Linux host? smbclient -L //localhost Both 98/XP can ping the host by IP address or by name (I've updated the host on both and the lmhost file on the 98 boot), but the 98 boot can't see the network at all, and the XP boot can't see anything on my CentOS box, although it at least sees that the box is there. Not even the home share? Have you created a machine account for the XP guest? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] CentOS-Samba question
My main system is a CentOS 5.1 64-bit desktop with gobs of disk and a couple of printers attached that work just fine. I have it set up with samba so my VMWare guest Windows XP can access most of the files and the printers. But, when I try to connect to the printers from a remote machine that has a Win98/WinXP dual boot, I can't see the printers at all. Both 98/XP can ping the host by IP address or by name (I've updated the host on both and the lmhost file on the 98 boot), but the 98 boot can't see the network at all, and the XP boot can't see anything on my CentOS box, although it at least sees that the box is there. Here's my smb.conf: # Global parameters [global] workgroup = MARKHOME domain master = yes preferred master = yes server string = Samba Server printcap name = /etc/printcap cups options = raw log file = /var/log/samba/%m.log max log size = 50 password server = none username map = /etc/samba/smbusers socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 wins support = yes dns proxy = no idmap uid = 16777216-33554431 idmap gid = 16777216-33554431 template shell = /bin/false winbind use default domain = no [homes] comment = Home Directories valid users = %S path = /home/%u create mask = 664 directory mask = 775 writeable = yes browseable = yes [tmp] comment = Temporary file space path = /tmp writeable = yes guest ok = yes [printers] comment = All Printers path = /var/spool/samba browseable = yes printable = yes What am I missing? Thanks. mhr ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] samba question
On 5/24/08, Dennis McLeod <[EMAIL PROTECTED]> wrote: > You should really look into the Samba Mailing list.. > https://lists.samba.org/mailman/listinfo/samba > Following your thread, you likely need to add the server to the hosts and > lmhosts files on your XP boxes, as was already mentioned Thanks! will check with the samba list, I am with Centos list only for the moment... I also notice that I can see the workgroup (MYGROUP) in "My Network Places" but cannot double click into it to see the centos share. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] samba question
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of david chong > Sent: Thursday, May 22, 2008 3:21 AM > To: CentOS mailing list > Subject: [CentOS] samba question > > Hi, > > I am running Centos5.1, trying to configure samba now. I am > quite new in this area and hope help from the list. > > I could not connect to it from a windows xp pc You should really look into the Samba Mailing list.. https://lists.samba.org/mailman/listinfo/samba I only use two mailing lists (Linux that is...) Centos and Samba.. Following your thread, you likely need to add the server to the hosts and lmhosts files on your XP boxes, as was already mentioned Dennis ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] samba question
On Fri, May 23, 2008 at 12:09 AM, david chong <[EMAIL PROTECTED]> wrote: > > Pinging server name, From the server itself can ping. > However from winxp client cannot ping by server name, can only ping by > ip address. > This probably means that your Win XP hosts file doesn't have the name in it mhr ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] samba question
On 5/23/08, Christopher Chan <[EMAIL PROTECTED]> wrote: > > Do you have netbios over tcp/ip enabled on your windows xp box? > If I can ping to other windows xp boxes by name, does it mean I have netbios over tcp/ip enabled? C:\Documents and Settings\user>ping ws03 Pinging ws03 [192.168.0.33] with 32 bytes of data: Reply from 192.168.0.33: bytes=32 time<1ms TTL=128 Reply from 192.168.0.33: bytes=32 time<1ms TTL=128 Reply from 192.168.0.33: bytes=32 time<1ms TTL=128 Reply from 192.168.0.33: bytes=32 time<1ms TTL=128 Ping statistics for 192.168.0.33: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms Thanks David ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] samba question
david chong wrote: On 5/23/08, John <[EMAIL PROTECTED]> wrote: Can you ping the Samba Server by the Server name? Pinging server name, From the server itself can ping. Irrevelant to network problems FYI. However from winxp client cannot ping by server name, can only ping by ip address. Okay, no network problems it seems. Do you have netbios over tcp/ip enabled on your windows xp box? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] samba question
On 5/23/08, John <[EMAIL PROTECTED]> wrote: > > Can you ping the Samba Server by the Server name? > Pinging server name, From the server itself can ping. However from winxp client cannot ping by server name, can only ping by ip address. [EMAIL PROTECTED] david]# ping -c3 antioch PING antioch.mc (127.0.0.1) 56(84) bytes of data. 64 bytes from antioch.mc (127.0.0.1): icmp_seq=1 ttl=64 time=0.094 ms 64 bytes from antioch.mc (127.0.0.1): icmp_seq=2 ttl=64 time=0.068 ms 64 bytes from antioch.mc (127.0.0.1): icmp_seq=3 ttl=64 time=0.048 ms --- antioch.mc ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2000ms rtt min/avg/max/mdev = 0.048/0.070/0.094/0.018 ms ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] samba question
> > Run testparm and tell us what your share definitions are...if any. > [EMAIL PROTECTED] david]# testparm Load smb config files from /etc/samba/smb.conf Processing section "[samba]" Loaded services file OK. Server role: ROLE_STANDALONE Press enter to see a dump of your service definitions [global] workgroup = MYGROUP security = SHARE [samba] path = /home/samba guest ok = Yes Thanks David ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] samba question
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of david chong Sent: Thursday, May 22, 2008 10:19 PM To: CentOS mailing list Subject: Re: [CentOS] samba question > Have you ever tried going through the Samba Howto or the Using Samba > book material that comes free with samba in html format? > > If you want help, then you need to tell us also what you have > done...why should we try to walk you through each and every step? > Hi All, Thanks for all your suggestions. No, I don't mean to ask you walking me step by step. Actually I am following the "Samba 3 By Example" and stuck at the very first example. I copied the whole smb.conf but cannot connect to my box. I can ping to it and ssh to it though. I notice in the example running "smbclient -L localhost -U%" will output the line below: ADMIN$ IPC IPC Service (Samba 3.0.20) but from my C5.1, I don't have this line, other lines are the same, can anyone explain this line, wondering if this is where the problem lies. -- Can you ping the Samba Server by the Server name? "[EMAIL PROTECTED] yourservernamehere" All your line means, is that is the administrative share "\\servername\admin$". OK, if you did the example in the from "Samba 3 by Example", then you will be able to connect via anonimously to the samba server from the Windows machine. That is providing that you have the correct file permissions on the Samba Server in question. For that you will use the commands "chmod & chown". Full access is needed to the folder that is shared in samba using that example. When using chown and chmod be sure to use the "-R Option", to make the changes apply recursively to the shared folder. I honestly know that if your indeed using that example it will work if followed step by step. Have a Blast :-D!, JohnStanley ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] samba question
I notice in the example running "smbclient -L localhost -U%" will output the line below: ADMIN$ IPC IPC Service (Samba 3.0.20) but from my C5.1, I don't have this line, other lines are the same, can anyone explain this line, wondering if this is where the problem lies. Run testparm and tell us what your share definitions are...if any. cheers, Christopher ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] samba question
> Have you ever tried going through the Samba Howto or the Using Samba book > material that comes free with samba in html format? > > If you want help, then you need to tell us also what you have done...why > should we try to walk you through each and every step? > Hi All, Thanks for all your suggestions. No, I don't mean to ask you walking me step by step. Actually I am following the "Samba 3 By Example" and stuck at the very first example. I copied the whole smb.conf but cannot connect to my box. I can ping to it and ssh to it though. I notice in the example running "smbclient -L localhost -U%" will output the line below: ADMIN$ IPC IPC Service (Samba 3.0.20) but from my C5.1, I don't have this line, other lines are the same, can anyone explain this line, wondering if this is where the problem lies. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] samba question
david chong wrote: Hi, I am running Centos5.1, trying to configure samba now. I am quite new in this area and hope help from the list. Have you ever tried going through the Samba Howto or the Using Samba book material that comes free with samba in html format? If you want help, then you need to tell us also what you have done...why should we try to walk you through each and every step? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] samba question
david chong wrote: Hi, I am running Centos5.1, trying to configure samba now. I am quite new in this area and hope help from the list. I could not connect to it from a windows xp pc From the console, I log in and do a smbclient -L localhost -U% Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.0.25b-0.el5.4] Sharename Type Comment - --- samba Disk IPC$IPC IPC Service (Samba 3.0.25b-0.el5.4) Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.0.25b-0.el5.4] Server Comment ---- ANTIOCH Samba 3.0.25b-0.el5.4 WorkgroupMaster ---- MYGROUP ANTIOCH Could you pls help. Thanks David Hi David, I recommend you this: http://www.samba.org/samba/docs/man/Samba-Guide/ This is IMHO an excellent guide made by the good folks at samba.org. Very basically, you need to edit /etc/samba/smb.conf and define your shares there. The default file is abundantly commented. You can have your server validate the accesses using locally stored samba/users accounts or even validate with a SMB/CIFS PDC (Winblows or Samba). Hope this helped a bit! Guy Boisvert, ing. IngTegration inc. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] samba question
On Thursday 22 May 2008 14:11:31 John wrote: > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of david chong > Sent: Thursday, May 22, 2008 6:21 AM > To: CentOS mailing list > Subject: [CentOS] samba question > > Hi, > > I am running Centos5.1, trying to configure samba now. I am quite new in > this area and hope help from the list. > > I could not connect to it from a windows xp pc > > >From the console, I log in and do a > > > >smbclient -L localhost -U% > > Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.0.25b-0.el5.4] > > Sharename Type Comment > - --- > samba Disk > IPC$IPC IPC Service (Samba 3.0.25b-0.el5.4) > Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.0.25b-0.el5.4] > > Server Comment > ---- > ANTIOCH Samba 3.0.25b-0.el5.4 > > WorkgroupMaster > ---- > MYGROUP ANTIOCH > > Could you pls help. > Thanks > > David > --- > Did you do any basic network trouble shooting like ping the samba server > from the windows host by servername and the ip addy? Start there. You > should also need to disable windows simple file sharing in the Tools Menu. > Have a look at wiki.centos.org there is great how to there about how to do > all this. You will also need to define samba or unix users on your samba > server. If you haven't done samba troubleshooting before google for it. There is a very good guide out there - the copy I have is *way* out of date so I won't offer it. Anne signature.asc Description: This is a digitally signed message part. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] samba question
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of david chong Sent: Thursday, May 22, 2008 6:21 AM To: CentOS mailing list Subject: [CentOS] samba question Hi, I am running Centos5.1, trying to configure samba now. I am quite new in this area and hope help from the list. I could not connect to it from a windows xp pc >From the console, I log in and do a >smbclient -L localhost -U% Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.0.25b-0.el5.4] Sharename Type Comment - --- samba Disk IPC$IPC IPC Service (Samba 3.0.25b-0.el5.4) Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.0.25b-0.el5.4] Server Comment ---- ANTIOCH Samba 3.0.25b-0.el5.4 WorkgroupMaster ---- MYGROUP ANTIOCH Could you pls help. Thanks David --- Did you do any basic network trouble shooting like ping the samba server from the windows host by servername and the ip addy? Start there. You should also need to disable windows simple file sharing in the Tools Menu. Have a look at wiki.centos.org there is great how to there about how to do all this. You will also need to define samba or unix users on your samba server. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] samba question
Hi, I am running Centos5.1, trying to configure samba now. I am quite new in this area and hope help from the list. I could not connect to it from a windows xp pc >From the console, I log in and do a >smbclient -L localhost -U% Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.0.25b-0.el5.4] Sharename Type Comment - --- samba Disk IPC$IPC IPC Service (Samba 3.0.25b-0.el5.4) Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.0.25b-0.el5.4] Server Comment ---- ANTIOCH Samba 3.0.25b-0.el5.4 WorkgroupMaster ---- MYGROUP ANTIOCH Could you pls help. Thanks David ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos