urgrue | 2 Aug 2002 00:03
Picon

samba woes

since upgrading to the latest samba i have a couple problems.
first, my printer doesnt work. im using lpd, which works. samba shares it, 
windows can find it, but i get an access denied error.
this, even when using my old, functional with the previous samba, smb.conf 
file.

second, samba seems to die. the processes are alive but windows cant see 
find the computer at all (ping works etc, just not smb).

if anyone has any ideas please let me know. here is my smb.conf:
[global]
         auto services = global
         printing = bsd
         encrypt passwords = Yes
         valid users = fo,freddie,ftp,nobody,root,wwwrun, <at> users, <at> root
         socket options = SO_KEEPALIVE TCP_NODELAY IPTOS_LOWDELAY
         character set = ISO8859-15
         printcap name = /etc/printcap
         wins support = true
         dead time = 6000
         writable = yes
         printer = direct
         veto files = /*.eml/*.nws/riched20.dll/*.{*}/
         map to guest = Bad User
         security = share
         workgroup = ROCKNROLL
         server string = The Milking Cow
         client code page = 850
         netbios name = cow2
         load printers = yes
(Continue reading)

Mark Sweitzer | 2 Aug 2002 07:38
Picon
Favicon

Samba and permissions


I have a Redhat 7.3 system running Samba server for Windows98 networked
users. These users are registered users on the Linux box, using encrypted
passwords mirrored in Samba's password list. These users need to have file
ownership for existing and new files edited on their Windows PC's. To allow
this, I've made the following mods:
in etc/profile: umask 002
in each user's data directory: chmod -r 7775
in "etc/samba/smb.conf" global settings section:
create mask = 7775
inherit permissions=no
force create mode 0664

This allows proper file ownership, and I then set all files in each user's
directory to be "read only" to all users but its owner. It also allows me to
assign other group permissions as is necessary without disrupting the
ownerships. Sometimes though, a user will copy a data file from their own
directory into another user's directory, with the intention of having the
file be "writable" by the 2nd user. However, the file continues to hold the
original ownership, and is "read only" to the 2nd user, even though it now
resides in the 2nd user's data directory.
I need to find the correct "chmod" command, or other method, to allow these
special files to become writable. It needs to be via a one-time command or
script entered at the server, as these Windows users do not have access to a
Linux shell, only to their Samba network shares.
I've also tried "inherit permissions=yes" but it did not correct the
problem.
Any suggestions?
***********************
Thanks,
(Continue reading)

Linux User | 2 Aug 2002 13:30

Error Compiling OpenSSH-3.4p1

Folks,
	Need a bit of help here as I try to move from rote user to semi-competent 
admin. I've got my internal server working, although it's rather crufty, as I 
just dumped things on it and bashed about til it worked. Now I'm trying to 
build a replacement up cleanly from the start, but I can't get past the first 
steps.

	I've started with a fairly empty installation of RH 6.2 (for various 
reasons, I'm NOT going with the latest/greatest). By "empty" I mean I did not 
install most packages, because I want to install the most recent versions 
from source. 

	First step is to get secure login via OpenSSH, so I can finish work from my 
desktop machine instead of the console. I've installed OpenSSL-0.9.6d, in the 
default directory (/usr/local/ssl), with shared libraries enabled. Next step 
was _supposed_ to be OpenSSH-3.4p1 (btw, _not_ the compromised one that was 
briefly on the main site ...). Unfortunately, configure keeps telling me my 
OpenSSL headers don't match my libraries, which I don't understand. The only 
headers on the system should be the ones with the libraries I just 
compiled--I did *not* install the default RH6.2 packages, so there are no old 
files or directories from previous versions laying around. I don't know what 
default directory OpenSSH assumes, so I tried specifying various directories 
as well, using the following commands:

	./configure
	./configure --with-ssl-dir=/usr/local/ssl
	./configure --with-ssl-dir=/usr/local/ssl/lib

	Nada.

(Continue reading)

urgrue | 2 Aug 2002 14:49
Picon

rename multiple files at once

simple question...
i have a dir with files like:
001.asd
002.asd
003.asd

how would i do something like:
rename all files matching ^0* to a*
the desired result being:
a01.asd
a02.asd
a03.asd

anyone know?
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

urgrue | 2 Aug 2002 14:51
Picon

solved: rename multiple files at once

sorry, nevermind, i got it:
mmv -r "0*" "a#1"

On 2002.08.02 15:49 urgrue wrote:
> simple question...
> i have a dir with files like:
> 001.asd
> 002.asd
> 003.asd
> 
> how would i do something like:
> rename all files matching ^0* to a*
> the desired result being:
> a01.asd
> a02.asd
> a03.asd
> 
> anyone know?
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin"
> in
> the body of a message to majordomo <at> vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

(Continue reading)

Eduardo Frias | 2 Aug 2002 14:09
Picon

Groupware application


Hi!

Does anybody know of a groupware application for Linux?, I have seen
phpgroupware and I think it is a very good option, but before setting it
up I would like to know if there is a better option. What we want is that
our users can have in one central place: e-mail, addresbook, eletronic
calendar, ToDo List, etc, and all this in a shared environment. What I
mean about shared is that for example one user can ( if he wants to
) share its own calendar with other users. Also, the fact of having one
central address-book. We want that all this is done via a web-browser. 

Any ideas?, or any combination of open-source software to implement this?,
I would like to set this up instead of having to acquire something like
Lotus Notes or something alike.

As always!, thanks for sharing your knowledge.

.-.
Eduardo Frias
The more you read, the less everyone else knows
-.-


-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

(Continue reading)

Camelia NASTASE | 3 Aug 2002 09:06
Picon

Re: Error Compiling OpenSSH-3.4p1

>
> 	First step is to get secure login via OpenSSH, so I can finish work from my
> desktop machine instead of the console. I've installed OpenSSL-0.9.6d, in the
> default directory (/usr/local/ssl), with shared libraries enabled. Next step
> was _supposed_ to be OpenSSH-3.4p1 (btw, _not_ the compromised one that was
> briefly on the main site ...). Unfortunately, configure keeps telling me my
> OpenSSL headers don't match my libraries, which I don't understand. The only
> headers on the system should be the ones with the libraries I just
> compiled--I did *not* install the default RH6.2 packages, so there are no old
> files or directories from previous versions laying around. I don't know what
> default directory OpenSSH assumes, so I tried specifying various directories
> as well, using the following commands:
>
> 	./configure
> 	./configure --with-ssl-dir=/usr/local/ssl
> 	./configure --with-ssl-dir=/usr/local/ssl/lib
>
> 	Nada.

could you send the error you get?

have a nice day,
camelia
--

-- 
Camelia Nastase
Administrator Retea
Departamentul Internet
ASTRAL TELECOM SA, Sucursala Bucuresti
Tel: 021-3209204 Fax: 021-3209203

(Continue reading)

Camelia NASTASE | 3 Aug 2002 09:31
Picon

Re: rename multiple files at once


#!/bin/sh

for i in 0*.asd
do
a=`/bin/ls $i| sed s/0/a/`
/bin/mv $i $a
done

test it first please.

hope it helps,
camelia
--

-- 
Camelia Nastase
Administrator Retea
Departamentul Internet
ASTRAL TELECOM SA, Sucursala Bucuresti
Tel: 021-3209204 Fax: 021-3209203

>
> simple question...
> i have a dir with files like:
> 001.asd
> 002.asd
> 003.asd
>
> how would i do something like:
> rename all files matching ^0* to a*
> the desired result being:
(Continue reading)

Glynn Clements | 3 Aug 2002 12:37
Favicon

Re: rename multiple files at once


Camelia NASTASE wrote:

> #!/bin/sh
> 
> for i in 0*.asd
> do
> a=`/bin/ls $i| sed s/0/a/`
> /bin/mv $i $a
> done

1. Using "ls" is unnecessary; "echo" would suffice.

2. If you have bash, you can also eliminate the use of "sed", e.g.

	for i in 0*.asd ; do
	    /bin/mv -- "$i" "a${i#0}"
	done

Also, a couple of general scripting tips:

1. Shell variables should usually be enclosed in double quotes,
otherwise you will get undesired behaviour if the value contains
whitespace.

2. If the first argument to a command is a variable, you should allow
for the case where it begins with a dash, e.g. by using "--" (this
isn't any issue in this specific case, as the filename is guaranteed
to begin with a "0").

(Continue reading)

Linux User | 4 Aug 2002 15:58

Re: Error Compiling OpenSSH-3.4p1

On Saturday 03 August 2002 03:06 am, Camelia NASTASE wrote:
> could you send the error you get?

The specific error is "configure: error: Your OpenSSL headers do not match 
your library"

Checking through config.log, I find the following snippet. Note that it *is* 
correctly referencing the SSL include and library folders, and  the file 
librypto.so..0.9.61 *do* exist, and it *is* readable by root.

===== begin snip 
configure:8228: gcc -o conftest -g -O2 -Wall -Wpointer-arith 
-Wno-uninitialized -I/usr/local/ssl/include  -L/usr/local/ssl/lib  conftest.c 
-lutil -lz -lnsl  -lcrypto >&5
configure:8228: $? = 0
configure:8228: test -s conftest
configure:8228: $? = 0
configure:8233: checking whether OpenSSL's headers match the library
configure:8279: gcc -o conftest -g -O2 -Wall -Wpointer-arith 
-Wno-uninitialized -I/usr/local/ssl/include  -L/usr/local/ssl/lib  conftest.c 
-lutil -lz -lnsl  -lcrypto >&5
configure: In function `main':
configure:8283: warning: implicit declaration of function `SSLeay'
configure:8279: $? = 0
configure:8279: ./conftest
./conftest: error in loading shared libraries: libcrypto.so.0.9.6: cannot 
open shared object file: No such file or directory
configure:8279: $? = 127
configure: program exited with status 127
configure: failed program was:
(Continue reading)


Gmane