From owner-freebsd-questions Mon Sep 21 14:45:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA14591 for freebsd-questions-outgoing; Mon, 21 Sep 1998 14:45:46 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from harfang.CC.UMontreal.CA (harfang.CC.UMontreal.CA [132.204.2.102]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA14371 for ; Mon, 21 Sep 1998 14:44:04 -0700 (PDT) (envelope-from beaupran@JSP.UMontreal.CA) Received: from epsom.jsp.umontreal.ca (epsom.JSP.UMontreal.CA [132.204.45.25]) by harfang.CC.UMontreal.CA (8.8.8/8.8.8) with SMTP id RAA00474; Mon, 21 Sep 1998 17:43:19 -0400 (EDT) Received: from derby.jsp.umontreal.ca (derby.jsp.umontreal.ca [132.204.45.26]) by epsom.jsp.umontreal.ca via ESMTP (951211.SGI.8.6.12.PATCH1502/JSP1789) id RAA28536; Mon, 21 Sep 1998 17:43:19 -0400 Received: from localhost (beaupran@localhost) by derby.jsp.umontreal.ca via SMTP (951211.SGI.8.6.12.PATCH1502/JSP1789) id RAA24634; Mon, 21 Sep 1998 17:43:19 -0400 X-Authentication-Warning: derby.jsp.umontreal.ca: beaupran owned process doing -bs Date: Mon, 21 Sep 1998 17:43:18 -0400 (EDT) From: BEAUPRE Antoine To: Ghulum Dastgir cc: freebsd-questions@FreeBSD.ORG Subject: Re: shells, users and X In-Reply-To: <5060100023679139000002L092*@MHS> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 21 Sep 1998, Ghulum Dastgir wrote: > hi, > > well here goes: > > 1. I've installed X-windows on my FBSD installation then decided to > change my root shell from /bin/csh to /bin/bash. After editing with vipw I > found I couldn't access > X-windows anymore i.e. if I enter startx: it says command not found. This is abnormal. bash is supposed to be in /usr/local/bin. > How can I fix this as startx was working previously with csh? Maybe your path isn't correcty set up in bash? type: set | grep path and check if /usr/X11R6/bin is in your path. > 2. More importantly, when I add a user I find that the user's home > directory is either /home/username/username or /usr/username. These home > directories don't list any files and startx doesn't work. > So how do I access X-windows as a user given I have a working > installation as root? very bad. Don't do this. Many files are write protected for fool-proof safety. Some of these safeties are cleared when yo work as root (i.e. uid 0) > N.B. when adding user adduser says /home > group doesn't exist - does this mean I've got to add entry to > /etc/group, if so how? No. When you create the user, you must put him in a group. If it says "/home group doesn't exist", then it means that you have asked to put the user in the /home group, which obviously doesn't exist. > Is it actually worth the extra effort working as a user, because only I'll be > working on my FBSD install on my pc at home. It is worth it. If you can't manage to create a user for yourself, imagine managing thousands!!! There are quite efficient mechanisms in freebsd used to manage users. Your first step would be to run the command "adduser mynewuser". It will prompt you a series of questions which will create the user entry in passwd. > As a mere user I guess I can't > acess the cdrom drive, mount my /dos partition etc - so I-ll be constatly > typing "su". ... again, it's all a matter of management. In order to get access to my cd-rom, I had to add myself to a new group. When you do ls -l, you get the user and group ownership, and the permissions associated to it. If you can't acess the drive, then it must be that you don't have the correct perms. So here's how I did it: 0) My cd-rom is a IDE, precisely, the device name is /dev/wcd0c. 1) ls -l /dev/wcd0c brw-r----- 1 root operator 19, 2 Aug 6 17:05 /dev/wcd0c Analysis: root have r/w perms on it, and the operator group have read perms on it. I don't want to be root, so I include myself in the "operator" group. 2) more /etc/group [...] operator:*:5:root [...] Analysis: Only the root user is in the operator group, so I must change the line to: operator:*:5:root,mynewuser 3) et voila! your user should now be able to use the cdplayer!!! > By the way I have version 2.2.6 and I don't seem to have been given Ghostview > (it was included in the earlier 2.2.5 FBSD release), how come? > any thoughts welcome..... > > ghulam Hope I helped! +-----------------------------------+ | Free the world from businessmen | | Free yourself from your money | +-----------------------------------+ Free the web. Spidey visit: http://www.JSP.UMontreal.CA/~beaupran To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message