Re: [CentOS] Samba Question

2009-08-26 Thread Chan Chung Hang Christopher

 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

2009-08-26 Thread Johnny Hughes
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


Re: [CentOS] Samba Question

2009-08-26 Thread Les Mikesell
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

2009-08-26 Thread Toby Bluhm
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

2009-05-23 Thread JohnS

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

2009-05-22 Thread Fabian Arrotin
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

2009-05-21 Thread JohnS

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


Re: [CentOS] Samba Question

2009-05-21 Thread JohnS

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

2009-05-21 Thread Bo Lynch

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

2009-05-21 Thread Bo Lynch
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

2009-05-21 Thread Toby Bluhm


 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

2009-05-21 Thread JohnS

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

2009-05-21 Thread JohnS

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


[CentOS] Re: CentOS-Samba question

2008-06-03 Thread Scott Silva

on 6-3-2008 1:00 PM MHR spake the following:

On Mon, Jun 2, 2008 at 10:16 AM, John R Pierce pierce-BRp9yk6zKL1Wk0Htik3J/[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 username.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] Re: CentOS-Samba question

2008-06-03 Thread Ross Cavanagh

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] Re: CentOS-Samba question

2008-06-03 Thread MHR
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!

RBFG

mhr
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] samba question

2008-05-24 Thread david chong
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

2008-05-23 Thread david chong

 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

2008-05-23 Thread david chong
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

2008-05-23 Thread Christopher Chan

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

2008-05-23 Thread david chong
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\userping ws03

Pinging ws03 [192.168.0.33] with 32 bytes of data:

Reply from 192.168.0.33: bytes=32 time1ms TTL=128
Reply from 192.168.0.33: bytes=32 time1ms TTL=128
Reply from 192.168.0.33: bytes=32 time1ms TTL=128
Reply from 192.168.0.33: bytes=32 time1ms 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

2008-05-23 Thread MHR
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

2008-05-23 Thread Dennis McLeod
 

 -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

2008-05-22 Thread John
 
-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


Re: [CentOS] samba question

2008-05-22 Thread Anne Wilson
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

2008-05-22 Thread Guy Boisvert

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

2008-05-22 Thread Christopher Chan

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

2008-05-22 Thread david chong
 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

2008-05-22 Thread Christopher Chan



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

2008-05-22 Thread John
 
-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