View previous topic :: View next topic |
Author |
Message |
cf25 Apprentice
Joined: 20 Jun 2002 Posts: 158
|
Posted: Tue Jul 02, 2002 6:35 pm Post subject: gnome-terminal help! |
|
|
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 |
|
|
jay l33t
Joined: 08 May 2002 Posts: 980
|
Posted: Tue Jul 02, 2002 7:24 pm Post subject: |
|
|
Looks like the home folder for your account is missing. _________________ Do you want your posessions identified? [ynq] (n) |
|
Back to top |
|
|
cf25 Apprentice
Joined: 20 Jun 2002 Posts: 158
|
Posted: Tue Jul 02, 2002 7:26 pm Post subject: home folder? |
|
|
i'm sorry. new to this. what does that mean? |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Tue Jul 02, 2002 7:29 pm Post subject: |
|
|
mkdir $HOME, if jay is correct. _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
cf25 Apprentice
Joined: 20 Jun 2002 Posts: 158
|
Posted: Tue Jul 02, 2002 7:33 pm Post subject: dern! |
|
|
thats not it. i have a home directory. i even tried it for good measure. grrr! |
|
Back to top |
|
|
cf25 Apprentice
Joined: 20 Jun 2002 Posts: 158
|
Posted: Tue Jul 02, 2002 7:36 pm Post subject: does this mean anything to you? |
|
|
i created another user with useradd -g users -G wheel -m username.
it gives the same error
any ideas? |
|
Back to top |
|
|
cf25 Apprentice
Joined: 20 Jun 2002 Posts: 158
|
Posted: Tue Jul 02, 2002 7:42 pm Post subject: solved! |
|
|
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 |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Tue Jul 02, 2002 7:46 pm Post subject: Re: solved! |
|
|
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 |
|
|
cf25 Apprentice
Joined: 20 Jun 2002 Posts: 158
|
Posted: Tue Jul 02, 2002 7:54 pm Post subject: shell |
|
|
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 |
|
|
fidler Apprentice
Joined: 03 Jul 2002 Posts: 162 Location: Utah
|
Posted: Wed Jul 03, 2002 8:31 pm Post subject: |
|
|
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 |
|
|
hielvc Advocate
Joined: 19 Apr 2002 Posts: 2805 Location: Oceanside, Ca
|
Posted: Thu Jul 04, 2002 1:19 am Post subject: |
|
|
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 |
|
Back to top |
|
|
dol-sen Retired Dev
Joined: 30 Jun 2002 Posts: 2805 Location: Richmond, BC, Canada
|
Posted: Thu Jul 04, 2002 2:03 am Post subject: useradd |
|
|
OH! I know this one! do a man useradd, the -D option is for setting/displaying the defaults
Brian |
|
Back to top |
|
|
ring_of_trout n00b
Joined: 27 Aug 2002 Posts: 1
|
Posted: Tue Aug 27, 2002 7:53 am Post subject: Manually add shell path to user |
|
|
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 |
|
|
|