Re: [Samba] Timestamp problem

2004-10-18 Thread Gabor Kiss [Bitman]
> bash-2.03# ls -al
> total 20096
> drwxrwxrwx   2 dcenter  hermes 13312 Oct 18 09:48 .
> dr-xr-xr-x  13 dcenter  hermes   512 Oct 14 17:03 ..
> -rwxr--r--   1 jblanco  hermes30 Oct 18  2004 22626.log
> -rwxr--r--   1 jblanco  hermes503011 Oct 18  2004 22626.pdf
>
> See the different timestamps, first two entries (local and parent dir)
> have timestamps with "hour stamp" in the ls command output.
>
> The third and fourth entries do not shows hour stamp but only the date.

These files probably have "future" timestamp.
Wait an hour or two and try it again.

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


Re: [Samba] Filename problem (filenames containing slashes aka. \ and /)

2004-09-23 Thread Gabor Kiss [Bitman]
> i had this problems too, when i worked with some grafics ,
> i wrote a bash script which renamed there special filenames every day.
> Maybe a guru has an solution for you , but in case of /\ i dont know any

Any non-alphanumeric chars should be encoded.
E.g. as printed quotable encoding does.

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


Re: [Samba] wrong create mask on files

2004-08-11 Thread Gabor Kiss [Bitman]
> problem i have is that files are not created with the proper permissions set. i have 
> a
> user "lilly" who creates files. these files should have rwx for the group "users"
> (mapped to "DOMAIN\Users") as well as for the users. so on the appropriate share i
> said: "create mask = 0770" and "security mask = 0700". But it doesn't work as 
> expected.
> the files only have rwx for the user and no permissions for the group. any 
> suggestions?

create mask = 0770
security mask = 0770

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


Re: [Samba] printing = lprng working?

2004-08-02 Thread Gabor Kiss [Bitman]
> I updated samba today to 3.0.5. Printing stopped working. The log says:
>
> [2004/08/02 14:28:57, 0] printing/print_cups.c:cups_printer_fn(108)
>Unable to connect to CUPS server localhost - Verbindungsaufbau abgelehnt
>
> I'm using lprng not cups. Is samba ignoring printing = lprng?

I have similar messages if I run 'swat' but this does not interfere
with lprgn. I can print well. (Except that XP clients cannot see
the print queues. :-( )

Try to configure some test commands.
Here is my config:

[dummy]
comment = file
path = /var/spool/samba
guest ok = Yes
printable = Yes
print command = /tmp/test lpr -r -P'%p' %s
lpq command = /tmp/test lpq -P'%p'
lprm command = /tmp/test lprm -P'%p' %j
lppause command = /tmp/test lpc hold '%p' %j
lpresume command = /tmp/test lpc release '%p' %j
queuepause command = /tmp/test lpc stop '%p'
queueresume command = /tmp/test lpc start '%p'
printer name = lp

Where /tmp/test is a shell script:
#!/bin/sh

date >> /tmp/testlog
echo $* >> /tmp/testlog
ps u $PPID >> /tmp/testlog

PROG=$1
shift
$PROG "$@" 2>&1 | tee -a /tmp/testlog

And I have an "lp" entry in printcap:
lp|dummy
:cm=/tmp/lp file
:create_files
:filter=/usr/lib/ifhp/ifhp
:ifhp=model=default,status,sync,pagecount,waitend
:lp=/tmp/lp
:lprngtooloptions=FILTERTYPE="IFHP"
IFHP_OPTIONS="status,sync,pagecount,waitend"
 PRINTERDB_ENTRY="default"
:mc=0
:mx=0
:prefix_z=a4
:rw
:sd=/var/spool/lpd/%P
:sh

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


Re: [Samba] Linux smbfs differences

2004-07-29 Thread Gabor Kiss [Bitman]
> > but my 2.4 config is here:
> > #
> > # Network File Systems
> > #
> > ...
> > CONFIG_SMB_FS=m
> > CONFIG_SMB_NLS_DEFAULT=y
> > CONFIG_SMB_NLS_REMOTE="utf8"
> > CONFIG_SMB_UNIX=y
>
> I think your Linux vendor has patched your sources. Because if I look
> in the original sources

I compile myself my kernels from original sources.

> (http://lxr.linux.no/source/arch/i386/defconfig?v=2.4.26) there is no
> such option.

This because "CONFIG_SMB_FS is not set".

Check the _original_ source:

$ ls -l linux-2.4.26/fs/smbfs/proc.c
-rw-r--r--1 root root   83490 Apr 14 15:05 linux-2.4.26/fs/smbfs/proc.c
$

Its content:

int
smb_newconn(struct smb_sb_info *server, struct smb_conn_opt *opt)
{
...
#ifndef CONFIG_SMB_UNIX
server->opt.capabilities &= ~SMB_CAP_UNIX;
#endif
if (server->opt.capabilities & SMB_CAP_UNIX) {
struct inode *inode;
VERBOSE("Using UNIX CIFS extensions\n");
install_ops(server->ops, &smb_ops_unix);
inode = SB_of(server)->s_root->d_inode;
if (inode)
inode->i_op = &smb_dir_inode_operations_unix;
}


linux-2.4.26/fs/smbfs/Changelog writes:
2004-01-24 John Newbigin <[EMAIL PROTECTED]>

* *.c: Implementation of CIFS Extensions for UNIX systems


> such option. On the other hand, it doesn't make clear why several
> options need to be ignored.

I've no inten^H^H^Hformation to answer this question. ;-)
I just pointed out that you CAN achieve identical (however unwanted)
behavior of 2.4 and 2.6 smbfs implementation.

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


Re: [Samba] Linux smbfs differences

2004-07-29 Thread Gabor Kiss [Bitman]
> >> smbmount //server/share /mountpoint -o uid=100,gid=100
> >> makes all the files owned by uid 100 on a 2.4 kernel. The same command
> >> on a 2.6 kernel makes the mountpoint owned by uid 100, the rest of the
> >> files have the uid's as set on the server.
> >
> > Is CONFIG_SMB_UNIX enabled in 2.4 kernels?
> >
> >   | CONFIG_SMB_UNIX:
> >   |
> >   | Enabling this will make smbfs use the CIFS Unix Extensions if
> >   | supported by the server. These extensions allows use of unix user
> >   | ids, permissions, file modes, symlinks, etc that normally do not
> >   | work on smbfs.
> >   |
> >   | Samba 3.0 servers supports these extensions.
>
> No, that is not enabled, but I can't find the option in the .config of
> 2.4 or 2.6.

This is true for 2.6 (I guess extensions are always enabled)
but my 2.4 config is here:
#
# Network File Systems
#
...
CONFIG_SMB_FS=m
CONFIG_SMB_NLS_DEFAULT=y
CONFIG_SMB_NLS_REMOTE="utf8"
CONFIG_SMB_UNIX=y

Gabor
-- 
E-mail = m-mail * c-mail ^ 2
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Empty print queue

2004-07-28 Thread Gabor Kiss [Bitman]
> Users can also print on shared printers.
> But
> - (Windows XP) clients mostly report printers as unaccessable,
> - Opening printer icon produces empty list of queued jobs.

> I need some debugging help.
> What to check now?
> Is there any client for Linux that an also gets job list?

Progress report:
- Version 3.0.5-Debian produces the same result as 3.0.4-Debian.
- the Linux client I wanted is:

$ rpcclient -c 'enumjobs _printername_' -U _username_ _servername_
Password:
0: jobid[5]: _myuser_ Microsoft Word - XXX.doc  0/0 pages
$

This means XPs use slightly different protocol than rpcclient.

Gabor

No smoke, no drugs, no vindoze.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] passdb requires /etc/passwd entry?

2004-07-28 Thread Gabor Kiss [Bitman]
> I can't comment on the intentions of the samba authors as to the reasons
> that they have required the samba user to be a local unix user. I would
> venture to guess that a search of the samba archives would give you a
> lot of history on that.

OK, but I want at least these unix accounts to be locked.
So samba password is different than stored in /etc/shadow.
However these users cannot use swat at this moment because
it checks the normal unix password instead of samba content
of /var/lib/samba/secrets.tdb.

How can I reach swat to ignore /etc/shadow?
(It is no LDAP here.)

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


Re: [Samba] Linux smbfs differences

2004-07-27 Thread Gabor Kiss [Bitman]
> For example:
> smbmount //server/share /mountpoint -o uid=100,gid=100
> makes all the files owned by uid 100 on a 2.4 kernel. The same command
> on a 2.6 kernel makes the mountpoint owned by uid 100, the rest of the
> files have the uid's as set on the server.

Is CONFIG_SMB_UNIX enabled in 2.4 kernels?

  | CONFIG_SMB_UNIX:
  |
  | Enabling this will make smbfs use the CIFS Unix Extensions if
  | supported by the server. These extensions allows use of unix user
  | ids, permissions, file modes, symlinks, etc that normally do not
  | work on smbfs.
  |
  | Samba 3.0 servers supports these extensions.

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


[Samba] Empty print queue

2004-07-27 Thread Gabor Kiss [Bitman]
Folks,

(I'm a quite new Samba user. I.e. lamer. ;-)

File sharing works well.
Users can also print on shared printers.
But
- (Windows XP) clients mostly report printers as unaccessable,
- Opening printer icon produces empty list of queued jobs.

I spent half a day with debugging smbd. I found, that the configured
'lpq command' runs well, its output is parsed correctly.
However the list of pending jobs isn't sent back to client
at least I cannot see it in tcpdump's output.

Of course the other printer related commands (lprm, lppause, etc.)
are unusable in lack of job list.

I need some debugging help.
What to check now?
Is there any client for Linux that an also gets job list?

Environment:
- Samba version: 3.0.4-Debian
- Spooler: lprng
- Kernel: 2.6.7

Any help, idea or suggestion will be appreciated.

Gabor
-- 
E-mail = m-mail * c-mail ^ 2
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba