[Samba] Permissions 101
Hello. I have a Security = share smb.conf file and everything works fine, except that my wife 'sara' has only read access to the directory I am trying to share \\myserver\data\ on the linux machine. I am running two WinXP machines (home and pro) and trying to share files in this directory. If I check permissions I get ie: drwxrwxr--2 john myadmins 4096 May 4 03:11 2003_12 drwxrwxr--2 john myadmins 4096 May 4 03:08 2004_01 or -rwxrwxr--1 john myadmins 669914 Feb 28 15:37 114_1467.JPG -rwxrwxr--1 john myadmins 759455 Feb 28 15:38 114_1468.JPG My smb.conf is set up as: # 040502 # [global] workgroup = myworkgroup netbios name = myserver security = share encrypt password = Yes smb passwd file = /etc/samba/smbpasswd passwd program = /usr/bin/passwd %u server string = s %v on %L [homes] comment = John and Sara's Home Directories # we set the valid users = to the current share's name valid users = john # I know I should use something else here, but can't get anything else to work read only = No # we might want to set this to No after troubleshooting browseable = No hide dot files = Yes [data] # this is the main share we run all our files from comment=John and Sara's data store path = /home/data valid users = john sara read only = No writeable = Yes My /etc/group has the following lines inside: myadmins:x:500:john,sara And my passwd file has the needed entries. My wife is only able to get read permissions to this directory, she is a member of Myserver\myadmins, but that doesn't seem to help. I am new to this and very confused. Can anyone help? I have, of course, added the users to the smbpasswd. Tim -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: [Samba] printing from xp
Hidong, Hi. Install the printer locally. Then set up a new local port in the form: \\myserver\myprinter Make sure the myprinter you are sharing is not set up with a driver. For example type redhat-config-printer, select a name 'myprinter' then select a port, but for the driver select "Raw Queue". Enjoy, tim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hidong Kim Sent: Wednesday, May 05, 2004 7:39 PM To: [EMAIL PROTECTED] Subject: [Samba] printing from xp Hi, I've installed Samba 2.2.7a on a Red Hat 9 machine. This machine is also running VMware with Windows XP as the guest OS. The XP virtual machine can access the Linux host's shared directories, but not the printer. The printer is an Epson Stylus Color 860. It works fine in the Linux host. In the XP guest, I can see the printer in the add printer configuration wizard. But when I try to install the printer on the XP guest, it says that access to the printer is denied. The printer portion of my smb.conf is: [printers] comment = All Printers path = /var/spool/samba guest ok = Yes printable = Yes browseable = no What else do I need to check? Thanks, Hidong -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] %S not resolving in smb.conf file
Hey all, Everyone (esp. Vladimir Atanaskovik, Joe Cipale, and Eric Johnson) has been most helpful, but I am still struggling with an annoying issue. I have the following smb.conf file: [global] workgroup = archenland netbios name = agamemnon security = share printcap name = cups disable spoolss = Yes show add printer wizard = No printing = cups encrypt password = Yes smb passwd file = /etc/samba/smbpasswd passwd program = /usr/bin/passwd %u [homes] valid users = %S read only = No browseable = No [test] path = /home/test valid users = tim read only = No writeable = Yes Now I can't get to the \\agamemnon\tim directory when I am logged in as user 'tim', I can get to the test share. If I swap out the %S for a hard-coded 'tim' like [homes] valid users = tim read only = No browseable = No Then I can access the directory easily. Any thoughts why %S is not resolving? is there anyway to echo these variables (other than putting them in a comment = %S in a share) Thanks, Tim -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: SOME Suggestions on [Samba] Can't the very basic stuff to work
No -- not that I know -- how do I check that? I have been sharing lots of files with other windows computers and have several drives mapped. When I don't have windows passwords, it always prompts me for my password and username. Thanks, Tim My smb.conf # ** [global] workgroup = archenland netbios name = agamemnon security = share printcap name = cups disable spoolss = Yes show add printer wizard = No printing = cups encrypt password = yes smb passwd file = /etc/samba/smbpasswd passwd program = /usr/bin/passwd %u [homes] comment = Tim and Chrissy's Home Directories # we set the valid users = to the current share's name valid users = %S read only = No # we might want to set this to No after troubleshooting browseable = Yes [data] # this is the main share we run all our files from comment=Tim and Chrissy's data store path = /home/data valid users = tim chrissy read only = No writeable = Yes [printers] path = /var/spool/samba guest ok = Yes printable = Yes use client driver = Yes browseable = No -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric Johnson Sent: Monday, May 03, 2004 6:50 PM To: [EMAIL PROTECTED] Subject: RE: SOME Suggestions on [Samba] Can't the very basic stuff to work A beginner just listening in... On Windows XP Pro, are you using "Simple File Sharing"? I know that on a Windows network it forces all network connections to be "Guests". Eric -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: May 3, 2004 3:12 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject:SOME Suggestions on [Samba] Can't the very basic stuff to work Hello Tim, I have verified and recreated your problem. As soon as I switch SAMBA option security=share , I have exactly the same problems like you, when trying to access a SAMBA share via Windows "Add Network Places" The only option I have to logon is DOOMIT\Guets (DOOMIT is the NetBIOS Name of my samba server). HOWEVER: There *aren't any* problems, if I try to map the share as network drive (via Win explorer) when SAMBA option security=share. In Windows Explorer Menu: Tools->Map Network Drive Click on the "Connect using different user name" and enter a valid SAMBA user name and password. Then enter the network path to the share in the "Folder" Field of the "Map Network Drive" Dialog click finish and that's it. BUT: Things are different when SAMBA option security=user. Then I do *not* have any problems to access the share via "add network places". Here a login-dialog is displayed where you can enter a user name and password. Mapping network drive via Windows Explorer also works w/o any problem. BTW: I think that in your smb.conf there might by a error: from your posting of smb.conf you have valid users = tim chrissy however, according to the on-line documentation, names in the valid user parameter have to be separated by comma (,) So it should be valid users = tim, chrissy I hope this helps! Regards, Vlad! P.S. Perhaps a developer should take a look on this!! >>Thanks, but I am still having the same problem -- I made sure to reference >>the correct passwd file, but WinXP is still forcing me to logon as >>AGAMEMNON\Guest. >> >>Tim >>Subject: SOME Suggestions on [Samba] Can't the very basic stuff to work >>Hello Tim, >>I have read your posting on the samba mailing list. >>I suggest that you put following lines in your >>smb.conf >> >>encrypt password = yes >>smb passwd file = /etc/samba/smbpasswd >>passwd program = /bin/passwd %u >>CAUTION: The above paths to the smbpasswd and passwd file >>are related to my system. They differ from distribution to >>distribution. So on your Linux system the paths may be different. >>you may determine the path to those files by >> >>find / -name smbpasswd >>and >>find / -name passwd >> >>Now make sure that you have on your Linux system the users >>who shall have access to teh SAMBA Shares. >> >>Regards, >>Vlad -- NEU : GMX Internet.FreeDSL Ab sofort DSL-Tarif ohne Grundgeb|hr: http://www.gmx.net/dsl -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: SOME Suggestions on [Samba] Can't the very basic stuff to work
Thanks, but I am still having the same problem -- I made sure to reference the correct passwd file, but WinXP is still forcing me to logon as AGAMEMNON\Guest. Tim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 6:11 AM To: [EMAIL PROTECTED] Subject: SOME Suggestions on [Samba] Can't the very basic stuff to work Hello Tim, I have read your posting on the samba mailing list. I suggest that you put following lines in your smb.conf encrypt password = yes smb passwd file = /etc/samba/smbpasswd passwd program = /bin/passwd %u CAUTION: The above paths to the smbpasswd and passwd file are related to my system. They differ from distribution to distribution. So on your Linux system the paths may be different. you may determine the path to those files by find / -name smbpasswd and find / -name passwd Now make sure that you have on your Linux system the users who shall have access to teh SAMBA Shares. I think in your case they are: tim AND chrissy Now, since you are using security=share, so no LDAP server, you need to add these users to your smbpasswd, due it is used for authentification. This shall be done by calling smbpasswd -a user_name so smbpasswd -a tim and smbpasswd -a chrissy you will be promted for a password when adding the user. Give the same password as the unix password for those users. BTW: You shall be the root-user to perform the above said. Now RESTART your smbd and nmbd deamons and verify that they are running: ps -ef|grep smbd and ps -ef|grep nmbd Well, then try to access the FIRST your home directories, from Windows. You may also shall consider to set security=user. In this case you do not need to specify valid users for shares. Hope this helps. Regards, Vlad -- NEU : GMX Internet.FreeDSL Ab sofort DSL-Tarif ohne Grundgebühr: http://www.gmx.net/dsl -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Can't the very basic stuff to work
Fedora Core 1:Samba 3.0.0-15 trying to connect with Windows XP Pro and Home Hello All, I am really hoping for some help on this one. I am going through the very basic process of trying to learn Samba and get my home network up -- followed the HowTo verbatim. I have several problems that are show-stoppers. (1) I canft print. I have a hp Photosmart 7150 installed locally on the linux box and it works perfectly when printing from linux. I can see the printer from the samba share in windows and can install and esuccessfullyf print (the job reads gremote downlevel documenth Status: spooling User:nobody) but nothing prints. Lpq says: Photosmart7150 is ready No entries Zero activity on the printers part. (2) I canft access my share. If I try to go to start¨run and type \\agamemnon\data the only option for a username is AGAMEMNON\Guest and its disabled. I could really use some help on this. Thanks for any pointers. I know this is not secure -- just want to prove the concept first. Tim #My smb.conf [global] workgroup = archenland netbios name = agamemnon security = share printcap name = cups disable spoolss = Yes show add printer wizard = No printing = cups [homes] comment = Tim and Chrissy's Home Directories # we set the valid users = to the current share's name valid users = %S read only = No # we might want to set this to No after troubleshooting browseable = Yes [data] # this is the main share we run all our files from comment=Tim and Chrissy's data store path = /home/data guest ok = No valid users = tim chrissy read only = No writeable = Yes [printers] path = /var/spool/samba guest ok = Yes printable = Yes use client driver = Yes browseable = No -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Which verson should I go for?
I have 1 windows pc and 1 windows laptop. I want to share files off a common directory and have passwords managed by a domain. I also want to share two printers (hp deskjets). I installed the default that came with fedora core 1 3.0.1? I believe. I got the message after changing the password. I then installed the latest 3.0.3 -- then had problems with two versions installed. I am ready to start from scratch -- which version should I go for? Also what distro? I know it's a personality thing - I want a quick set-up minimal hassels. Also some initial smb.conf ideas would be cool. Thanks, tim -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba