Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Sep 1998 17:43:18 -0400 (EDT)
From:      BEAUPRE Antoine <beaupran@JSP.UMontreal.CA>
To:        Ghulum Dastgir <Ghulam_Dastgir@uk.ibm.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: shells, users and X
Message-ID:  <Pine.SGI.3.96.980921172834.22016A-100000@derby.jsp.umontreal.ca>
In-Reply-To: <5060100023679139000002L092*@MHS>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SGI.3.96.980921172834.22016A-100000>