Re: [Samba] Additional Drivers and Print Window Refresh

2003-05-27 Thread Eirik Thorsnes
Ryan Novosielski wrote:
 I tried a variation on the method you suggested: I right clicked on the
 white-space (who even knew that was there?! not me!) and did an [Add...]
 -- I am then asked for the driver, and then what OS it is for. Then it
 installs, but at the end gives me the error below, regarding the windows
 version. The driver installs to the list, AND shows up in enumdrivers, but
 windows bemoans the driver list every time you try to exit it. Question
 is, now, is are the drivers installed?
 
 Does anyone know how to REMOVE drivers from a Win2k or Win98 machine in
 order to find out?
 

I once had to remove drivers the hard way on NT, had to search the
registry for all references to the printer driver, as well as deleting
the driver files in WINNT\spool32. It was crucial to reboot the machine
afterwards.

The reason I had to delete the drivers was that I found it would not be
overwritten by a newer one. It even looked as if the driver was copied over.

Eirik Thorsnes

-- 
Nothing would please me more than being able to
hire ten programmers and deluge the hobby market
with good software. -- Bill Gates 1976

We are still waiting 

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] PATCH for packaging/RedHat/samba2.spec.tmpl

2003-03-04 Thread Eirik Thorsnes
Please accept my patch for the spec file for RedHat RPM packaging.

It fixes problems (warnings / packaging-failures) in the
Checking for unpackaged file(s) stage.

Patch is made by diff -u to a current SAMBA_2_2 CVS tree.
Tested by packaging the rpm files on RedHat 8.0 using the makerpms.sh
script.

Eirik Thorsnes

-- 
Nothing would please me more than being able to
hire ten programmers and deluge the hobby market
with good software. -- Bill Gates 1976

We are still waiting 
--- packaging/RedHat/samba2.spec.tmpl   2003-02-15 01:31:33.0 +0100
+++ packaging/RedHat/samba2.spec.tmpl.new   2003-03-04 22:39:11.0 +0100
@@ -319,6 +319,9 @@
 install -m644 packaging/RedHat/samba.xinetd $RPM_BUILD_ROOT/etc/samba/samba.xinetd
 echo 127.0.0.1 localhost  $RPM_BUILD_ROOT/etc/samba/lmhosts

+# Remove *.old files
+find $RPM_BUILD_ROOT -name *.old -exec rm -f {} \;
+
 %clean
 rm -rf $RPM_BUILD_ROOT

@@ -524,6 +527,8 @@
 %{prefix}/sbin/smbmount
 %{prefix}/sbin/smbumount
 %{prefix}/sbin/winbindd
+%{prefix}/sbin/debug2html
+%{prefix}/sbin/samba
 /sbin/mount.smbfs
 /sbin/mount.smb
 %{prefix}/bin/mksmbpasswd.sh
@@ -544,6 +549,10 @@
 %{prefix}/bin/smbcontrol
 %{prefix}/bin/smbcacls
 %{prefix}/bin/wbinfo
+%{prefix}/bin/pam_smbpass.so
+%{prefix}/bin/smbmount
+%{prefix}/bin/smbumount
+%{prefix}/bin/tdbbackup
 %attr(755,root,root) /lib/libnss_wins.s*
 %attr(755,root,root) %{prefix}/lib/samba/vfs/*.so
 %{prefix}/include/libsmbclient.h
@@ -554,6 +563,7 @@
 %{prefix}/share/swat/include/header.html
 %{prefix}/share/swat/include/footer.html
 %{prefix}/share/swat/using_samba/*
+%{prefix}/share/swat/README
 %config(noreplace) /etc/samba/lmhosts
 %config(noreplace) /etc/samba/smb.conf
 %config(noreplace) /etc/samba/recycle.conf
@@ -570,6 +580,7 @@
 MANDIR_MACRO/man7/*
 MANDIR_MACRO/man8/*
 %dir /etc/codepages/*
+%dir /etc/codepages/src/*
 %attr(755,root,root) %dir /var/cache/samba
 %dir /var/log/samba
 %dir /var/run/samba
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] SAMBA PDC User Permissions, Admin Settings, and Logon?

2003-02-25 Thread Eirik Thorsnes
Rob Savage wrote:
 Hey Nolan,
 
 I can easily give you an answer to I3
 
Issue 3: This is my main frustration - I cannot seem to block access to
other peoples shares! EG user chrisg can access the nolan share, etc.


[homes]
comment = Home Directory for %u
read only = No
create mask = 0660
directory mask = 0770
browseable = No
oplocks = No
level2 oplocks = No
 
 Try adding these:
 
 Valid users = %U
 Path = /home/%u
 Guest ok = No
 ---
 Have an excellent day,
 
 Rob Savage
 

AFAIK the special homes share needs %S instead of %U in valid users.
I don't think it is necessary to specify path (or perhaps even invalid?).

Samba will allways respect Unix permissions, so you can also set users
home dir to 0700 to block access.

Eirik Thorsnes


-- 
Never let a computer know you're in a hurry.
-Anonymous

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Security question on Domain admins in Samba PDC

2003-01-22 Thread Eirik Thorsnes
Is there some documentation on the access level of domain admins and the
root user in a Samba PDC?

More to the point: What is the potential damage one can expect with the
loss of a domain admin password and a samba root password (not identical
to the unix root password) respectively? Is it possible to get files
outside of the exported shares (e.g. passwd, smbpasswd) ?

The reason I'm asking is that I recently read a report of a compromise
of a Windows PDC (all passwords extracted / compromised) that was due to
the loss of a domain admin account.

Eirik Thorsnes

-- 
The story so far:
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
--- Douglas Adams The Hitchhikers Guide to the Galaxy

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] 2.2.6 and printer questions

2002-11-11 Thread Eirik Thorsnes
Gerald (Jerry) Carter wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On Fri, 8 Nov 2002, Thomas Bork wrote:

   Is it correct, that the automatic download of printer drivers is only
   possible for printers, which are associated with an printcap entry?
   When I'm uploading a postscript driver for a *virtuell* printer, which
   is not associated with an printcap entry and then making an automatic
   installation of the driver on w2k, the status of this printer is
   always Failure. The definition in smb.conf is:

 No.  Any printer can have drivers associated with it.




 cheers, jerry
  -
  Hewlett-Packard   - http://www.hp.com
  SAMBA Team-- http://www.samba.org
  GnuPG Key  http://www.plainjoe.org/gpg_public.asc
  ISBN 0-672-32269-2SAMS Teach Yourself Samba in 24 Hours 2ed
  I never saved anything for the swim back. Ethan Hawk in Gattaca
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.2.0 (GNU/Linux)
 Comment: For info see http://quantumlab.net/pine_privacy_guard/

 iD8DBQE9z8CbIR7qMdg1EfYRApPvAJ9XERToLG0lXTzqNTJ9ng/mk8STVwCglGYO
 TMHHKq64hrwr4iCG4Y4eM1A=
 =JTgf
 -END PGP SIGNATURE-


Of course, but since the lpq command for a virtual printer don't give a
successfull result - you get an error on the client for the status.
My solution here was to set a special lpq command for the virtual
printer, which always returned a successful result when asked.

Eirik Thorsnes

-- 
REAL Programmers never work 9 to 5.
If any REAL Programmers are around at 9 AM,
it's because they were up all night.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] PDF printer using ps2pdf ?

2002-10-30 Thread Eirik Thorsnes
S. Ancelot wrote:

 Hi,
 Is it possible to set up a printer in samba
 that will use ps2pdf converter to create pdf documents when printing
 on it ?
 Best Regards
 Steph


Have a look at packaging/Mandrake/samba-pdf-print  in the source.

Eirik Thorsnes

-- 
REAL Programmers never work 9 to 5.
If any REAL Programmers are around at 9 AM,
it's because they were up all night.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Windows 98 HDD shared from Samba

2002-04-29 Thread Eirik Thorsnes

The permissions on the mounted directory changes during mount,
you have to specify the permissions next to your defaults parameter in
/etc/fstab

I suggest you put all your users that should have access to this drive
into a group,
and then put:

gid=that group's gid number,umask=002
next to the default parameter

See man mount

Eirik Thorsnes


Gagneet Singh wrote:

Hi!
  I have two hard drives on my machine which I am using as a file server.
The first HDD contains the RH Linux 7.2 distribution and the second contains
Windows 98, the previous OS that I was using on the machine.
  I have created a mount in the '/etc/fstab' file and the drives on the
second disk are visible over the intranet, when I try to access it on the
network.
  The main problem comes when I have to save anything on that drive. It
gives an 'Access Denied' message and I am unable to write anything to this
drive. The '/etc/fstab' and '/etc/samba/smb.conf' files are given below:


# Samba config file created using SWAT
# from LinuxServer (127.0.0.1)
# Date: 2002/04/23 20:04:13

# Global parameters
[global]
   workgroup = LACME
   netbios name = LINUXSERVER
   server string = Samba Server
   encrypt passwords = Yes
   password level = 8
   username level = 8
   log file = /var/log/samba/%m.log
   max log size = 0
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   domain logons = Yes
   dns proxy = No
   wins support = Yes
   admin users = gagneet
   create mask = 0765
   hosts allow = 192.168.1.
   printing = lprng

[homes]
   comment = Home Directories
   valid users = %S
   read only = No
   create mask = 0664
   directory mask = 0775
   browseable = No

[printers]
   comment = All Printers
   path = /var/spool/samba
   printable = Yes
   browseable = No

[gagneet]
   comment = Gagneet's Account
   path = /home/gagneet
   username = gagneet
   valid users = gagneet
   read only = No
   guest ok = Yes
   hosts allow = 192.168.1.53
   hide unreadable = Yes
   fstype = vfat

[wp]
   comment = Windows Partion Account
   path = /mnt/wp
   username = gagneet
   valid users = gagneet
   read only = No
   create mask = 0777
   directory mask = 0777
   inherit permissions = Yes
   guest ok = Yes
   hosts allow = 192.168.1.53
   fstype = vfat
   dos filemode = Yes
***

***

LABEL=/ /   ext3defaults1 1
LABEL=/boot /boot   ext3defaults1 2
none/dev/ptsdevpts  gid=5,mode=620  0 0
none/proc   procdefaults0 0
none/dev/shmtmpfs   defaults0 0
/dev/hdb3   swapswapdefaults0 0
/dev/cdrom  /mnt/cdrom  iso9660
noauto,owner,kudzu,ro 0 0
/dev/fd0/mnt/floppy autonoauto,owner,kudzu 0
0
/dev/hdc1  /mnt/wp/drivec  vfatdefaults0 0
/dev/hdc5  /mnt/wp/drived  vfatdefaults0 0
/dev/hdc6  /mnt/wp/drivee  vfatdefaults0 0


  Please advice on how to access my Windows drive with writeable
permissions. I have given the /mnt/wp folder full permissions with 'chmod
777 /mnt/wp'.

Gagneet Singh
Email : [EMAIL PROTECTED]


  





-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Samba Setup??? Need help!!

2002-04-18 Thread Eirik Thorsnes

Redhat 7.x installs with firewall as default, have you checked that
ports 137-139 can get through?

Eirik Thorsnes


Macedo, Flavio A wrote:

Tony,

yes I have the share... here is a copy of my smb.conf... thanks for your
help

Flavio Macedo
Application Engineer
Transactional e-Business/Solutions Enabling Group
Intel Corporation
505.893.1282 



-Original Message-
From: Ricker, Tony [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 9:16 AM
To: 'Macedo, Flavio A'
Cc: '[EMAIL PROTECTED]'
Subject: RE: [Samba] Samba Setup??? Need help!!


Flavio,
   Do you have the share in your smb.conf? You might want to attach
your smb.conf so we can see what you have. Below is an example:

#TEST
[TEST]
writable = yes
browseable = yes
path = /home/test
valid users = user1,uer2 

Hope this helps.

Cheers,
Tony

-Original Message-
From: Macedo, Flavio A [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 10:12 AM
To: '[EMAIL PROTECTED]'
Subject: [Samba] Samba Setup??? Need help!!


All,

I am trying to setup samba on my linux platform (RedHat 7.1). I have the
smb/mnbd service running. But when I go to the Windows box and try to map a
drive to my machine, I get the error massage saying Network Path not
found..
I can ping the linux machine from my windows machine and vice-versa. My
question is: what else do I have to do to have samba running? 
Is there any special modification that has to be done on the smb.conf? If
so, what do I need to change? 

I ran the testparm and it seems to be running fine... 

Can anyone help me? I really need to have this done ASAP. Thanks

Flavio Macedo




  





-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba