Koozali.org: home of the SME Server

Linux Workstations on SME

Damian

Linux Workstations on SME
« Reply #30 on: January 08, 2005, 10:13:47 AM »
Hi Louis,

That all looks fine. On SME run:

domainname

grep portmap /etc/hosts.allow

grep nfs /etc/hosts.allow

service ypserv status

And post the results.

Damian

crimsonline

Linux Workstations on SME
« Reply #31 on: January 08, 2005, 02:45:04 PM »
On SME run:

domainname
test.com

grep portmap /etc/hosts.allow
portmap: 192.168.2.0/255.255.255.0

grep nfs /etc/hosts.allow

service ypserv status
ypserv (pid 2503) is running ...

I dont think i installed nfs yet.

Louis

Damian

Linux Workstations on SME
« Reply #32 on: January 08, 2005, 04:40:48 PM »
Louis,

That also looks fine. Hhhmmmm. You wouldn't be running SuSEFirewall or SuSEFirewall2 would you ?

Damian

crimsonline

Linux Workstations on SME
« Reply #33 on: January 09, 2005, 07:00:29 AM »
damian,
yes i am. i did open the firewall port in the YAST NIS expert tab

Louis

Damian

Linux Workstations on SME
« Reply #34 on: January 09, 2005, 11:07:20 AM »
Louis,

Is it possible to stop the firewall for a short period while you try to ypbind ? Also, is SME running in server only or gateway ?

Damian

crimsonline

Linux Workstations on SME
« Reply #35 on: January 09, 2005, 07:08:52 PM »
firewall stoped, i'm running my test server in server only

Damian

Linux Workstations on SME
« Reply #36 on: January 09, 2005, 07:18:42 PM »
OK, now that the firewall's stopped, can the client ypbind ?

Damian

crimsonline

Linux Workstations on SME
« Reply #37 on: January 27, 2005, 07:14:37 PM »
Damian,

I finally got everything up and running, thank you very very much for all your help and patience. I’m currently stuck on the x-windows error and see that I must change /bin/false to /bin/bash in /etc/passwd but I’m not sure where to change it

This is my passwd file on my test SME server:

root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
news:x:9:13:news:/var/spool/news:
uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin
gopher:x:13:30:gopher:/var/gopher:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
mysql:x:27:27:MySQL Server:/var/lib/mysql:/bin/bash
dns:x:53:53:DNS:/home/dns:/bin/false
ldap:x:55:55:LDAP User:/var/lib/ldap:/bin/false
nobody:x:99:99:Nobody:/:/sbin/nologin
www:x:100:101:e-smith web server:/home/e-smith:/bin/false
admin:x:101:101:e-smith administrator:/home/e-smith:/sbin/e-smith/console
public:x:102:103:e-smith guest:/home/e-smith:/bin/false
alias:x:400:400::/var/qmail/alias:/bin/false
qmaild:x:401:400::/var/qmail:/bin/false
qmaill:x:402:400::/var/qmail:/bin/false
qmailp:x:403:400::/var/qmail:/bin/false
qmailq:x:404:401::/var/qmail:/bin/false
qmailr:x:405:401::/var/qmail:/bin/false
qmails:x:406:401::/var/qmail:/bin/false
qmailscan:x:407:407::/var/spool/qmailscan:/bin/false
ntp:x:38:38::/etc/ntp:/sbin/nologin
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
squid:x:23:23::/var/spool/squid:/dev/null
apache:x:48:48:Apache:/var/www:/bin/false  
rpm:x:37:37::/var/lib/rpm:/bin/bash
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
pcap:x:77:77::/var/arpwatch:/sbin/nologin
cvmlog:x:1003:1003:cvm output log user:/var/log/imap:/bin/false
dnscache:x:410:410:DNScache user:/var/service/dnscache:/bin/false

regards,
louis

Damian

Linux Workstations on SME
« Reply #38 on: January 27, 2005, 08:35:26 PM »
Hi Louis,

Good to get this far eh ?

From your SME passwd listing I see no user accounts created so the account you're logging in to the workstation with doesn't exist on the SME server (and therefore not distributed to your workstationvia NIS). It must be a local account on the WS.
Create a normal user account on SME, then run the NIS push script to distribute it.

If you use the same username as is currently on your workstation  you need to make sure that you're using NIS before files in /etc/nsswitch.conf - oterwise the NIS user:passwd information is never matched due to picking up an acccount with the same name in local WS /etc/passwd file.

Damian

crimsonline

Linux Workstations on SME
« Reply #39 on: January 27, 2005, 09:04:15 PM »
Damian,

Don’t you ever sleep !! :-D
I did create 2 users on my sme box :
“louis” and “karen” I just don’t know where to go and fix the xsessions error

Louis

crimsonline

Linux Workstations on SME
« Reply #40 on: January 27, 2005, 09:10:01 PM »
my passwd file:
rpm:x:37:37::/var/lib/rpm:/bin/bash
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
pcap:x:77:77::/var/arpwatch:/sbin/nologin
cvmlog:x:1003:1003:cvm output log user:/var/log/imap:/bin/false
dnscache:x:410:410:DNScache user:/var/service/dnscache:/bin/false
dnslog:x:411:411:DNScache log user:/var/service/dnscache/log:/bin/false
stunnel:x:451:451:chrooted stunnel user user:/var/log/imap/ssl:/bin/false
imaplog:x:1001:1001:imap output log user:/var/log/imap:/bin/false
smelog:x:1002:1002:smelog log user:/var/log/smelog:/bin/false
smelastsys:x:2999:2999:sme last system user marker:/tmp:/bin/false
nutups:x:420:420:NUT UPS user:/var/lib/ups:/bin/false
louis:x:5000:5000:Louis Koen:/home/e-smith/files/users/louis:/bin/sshell
karen:x:5001:5001:Karen Koen:/home/e-smith/files/users/karen:/bin/sshell
account-user:x:5002:5002:Account Users:/home/e-smith:/bin/false
private:x:5003:5003:Private:/home/e-smith:/bin/false
accounts:x:5004:5004:Accounts:/home/e-smith/files/ibays/accounts/files:/bin/false
privatedrive:x:5005:5005:Private Drive:/home/e-smith/files/ibays/privatedrive/files:/bin/false
rpc:x:32:32:Portmapper RPC user:/:/sbin/nologin
server$:x:5006:5006:Hostname account for server$:/noexistingpath:/bin/false
rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin
nfsnobody:x:65534:65534:Anonymous NFS User:/var/lib/nfs:/sbin/nologin

Damian

Linux Workstations on SME
« Reply #41 on: January 27, 2005, 10:32:34 PM »
Nah - sleep is for wimps  ;-)

I missed the two users though ... (must be getting tired)

Edit SME's /etc/passwd and change:
louis:x:5000:5000:Louis Koen:/home/e-smith/files/users/louis:/bin/sshell
karen:x:5001:5001:Karen Koen:/home/e-smith/files/users/karen:/bin/sshell

to be:
louis:x:5000:5000:Louis Koen:/home/e-smith/files/users/louis:/bin/bash
karen:x:5001:5001:Karen Koen:/home/e-smith/files/users/karen:/bin/bash

Are the user IDs (5000 & 5001) the same on the workstation ? They need to be or you'll have access issues.

Damian

crimsonline

Linux Workstations on SME
« Reply #42 on: January 28, 2005, 08:25:56 AM »
Damian,

changed the passwd file on sme but when i do an ypcat passwd on workstation it still gives me the /bin/sshell

Louis

Damian

Linux Workstations on SME
« Reply #43 on: January 28, 2005, 09:21:36 AM »
Louis,

Are you using the /var/yp/push  script I described in the posting of 07 Jan 2005 21:05 ?

That script substitutes the corrected values for the shell for NIS accounts only.

Damian

crimsonline

Linux Workstations on SME
« Reply #44 on: January 28, 2005, 02:42:40 PM »
damian,
i did, i left out the 'make' at the end as it gave me an error when i ran it.

ps: it changed in the passwd.dist file but if i do a ypcat passwd sme or suse it still shows the the old /bin/sshell