Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gnome-terminal help!
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
cf25
Apprentice
Apprentice


Joined: 20 Jun 2002
Posts: 158

PostPosted: Tue Jul 02, 2002 6:35 pm    Post subject: gnome-terminal help! Reply with quote

so i recently installed gnome 2 and all was fine. then one day, i attempted to bring up gnome-terminal. it pops up with a message where the prompt should be that says...

"Could not execute command: No such file or directory."

Now comes the fun part. It only does it when I am logged in under my normal user account. It works fine when I am logged in as root. Oh, my user account belongs to users and wheel groups.
Back to top
View user's profile Send private message
jay
l33t
l33t


Joined: 08 May 2002
Posts: 980

PostPosted: Tue Jul 02, 2002 7:24 pm    Post subject: Reply with quote

Looks like the home folder for your account is missing.
_________________
Do you want your posessions identified? [ynq] (n)
Back to top
View user's profile Send private message
cf25
Apprentice
Apprentice


Joined: 20 Jun 2002
Posts: 158

PostPosted: Tue Jul 02, 2002 7:26 pm    Post subject: home folder? Reply with quote

i'm sorry. new to this. what does that mean?
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Tue Jul 02, 2002 7:29 pm    Post subject: Reply with quote

mkdir $HOME, if jay is correct.
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
cf25
Apprentice
Apprentice


Joined: 20 Jun 2002
Posts: 158

PostPosted: Tue Jul 02, 2002 7:33 pm    Post subject: dern! Reply with quote

thats not it. i have a home directory. i even tried it for good measure. grrr!
Back to top
View user's profile Send private message
cf25
Apprentice
Apprentice


Joined: 20 Jun 2002
Posts: 158

PostPosted: Tue Jul 02, 2002 7:36 pm    Post subject: does this mean anything to you? Reply with quote

i created another user with useradd -g users -G wheel -m username.

it gives the same error

any ideas?
Back to top
View user's profile Send private message
cf25
Apprentice
Apprentice


Joined: 20 Jun 2002
Posts: 158

PostPosted: Tue Jul 02, 2002 7:42 pm    Post subject: solved! Reply with quote

well, i managed to figure it out. kinda. if i create a user the same way but explicitly set the shell (in this case to /bin/bash) it works fine! grrreat!
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Tue Jul 02, 2002 7:46 pm    Post subject: Re: solved! Reply with quote

cf25 wrote:
well, i managed to figure it out. kinda. if i create a user the same way but explicitly set the shell (in this case to /bin/bash) it works fine! grrreat!
What shell was set before? Possibly gterm wasn't in your path.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
cf25
Apprentice
Apprentice


Joined: 20 Jun 2002
Posts: 158

PostPosted: Tue Jul 02, 2002 7:54 pm    Post subject: shell Reply with quote

i had not explicitly set the shell before. the odd thing was, gnome-terminal would actually pop-up and tell me that error message. so it wasn't a matter of finding the application. it was that the app didn't know what to do for a shell. is therea way to set the default shell so i don't have to explicitly declare it when i create users?
Back to top
View user's profile Send private message
fidler
Apprentice
Apprentice


Joined: 03 Jul 2002
Posts: 162
Location: Utah

PostPosted: Wed Jul 03, 2002 8:31 pm    Post subject: Reply with quote

The easiest method I can think of is add an alias in root bash profile, that is:

File=/root/.bash_profile
Code:

alias useradd="useradd -g users -G wheel,audio -s /bin/bash -m"


Then useradd should work the way you wish. You can commet out the wheel,audo if you wish.
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2805
Location: Oceanside, Ca

PostPosted: Thu Jul 04, 2002 1:19 am    Post subject: Reply with quote

useradd [-c comment] [-d home_dir]
[-e expire_date] [-f inactive_time]
[-g initial_group] [-G group[,...]]
[-m [-k skeleton_dir]] [-o] [-p passwd]
[-s shell] [-u uid] login

You can specify it when a user is added with -s /bin/bash switch.

hielvc :wink:
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Thu Jul 04, 2002 2:03 am    Post subject: useradd Reply with quote

OH! I know this one! do a man useradd, the -D option is for setting/displaying the defaults 8)

Brian
Back to top
View user's profile Send private message
ring_of_trout
n00b
n00b


Joined: 27 Aug 2002
Posts: 1

PostPosted: Tue Aug 27, 2002 7:53 am    Post subject: Manually add shell path to user Reply with quote

I had the same problem and manually added /bin/tcsh (or your choice of flavor- /bin/bash) to the my user account (bayerd) in the /etc/passwd file.

Code:
......
sshd:x:22:90:sshd:/var/empty:/dev/null
bayerd:x:100:100::/home/bayerd:

Original

Code:
......
sshd:x:22:90:sshd:/var/empty:/dev/null
bayerd:x:100:100::/home/bayerd:/bin/tcsh

Modified
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum