Unix Technical Forum

Could not set working directory Solaris 9

This is a discussion on Could not set working directory Solaris 9 within the comp.unix.solaris forums, part of the Solaris Operating System category; --> What is the working directory and how do I set it for a user account? When I sign on ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > comp.unix.solaris

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 07:40 PM
jim brown
 
Posts: n/a
Default Could not set working directory Solaris 9

What is the working directory and how do I set it for a
user account?

When I sign on with my user account (non-root) I get
"Could not set working directory to "/export/home/usersave"
No such file or directory."

admintool and passwd both show the correct home
directory "export/home/user"

I had a working "user" account but suddenly it would get
an error on booting and refuse to complete login.
I tried to use the Solaris Management Console" to delete
the account but it failed. I tried to use admintool to
delete the account - it failed trying to delete the
home directory. I used admintool to delete the account
but leave the home directory and that worked.

My plan was to delete the home directory by hand but
I decided to just rename it instead to "home/export/usersave"
in case I wanted to put it back.

Now I use admintool to create account "user" again.
This seems to work but when it comes up a terminal window
is in "/export/home/usersave" not the home directory specified
in admintool and shown in passwd.

I deleted "/export/home/usersave" and now I get the
"Could not set working directory to "/export/home/usersave"
No such file or directory." message but a terminal window is
in the correct home directory.

Any ideas?

Jim

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 07:41 PM
Bruce D Porter
 
Posts: n/a
Default Re: Could not set working directory Solaris 9

On Sat, 15 Nov 2003 21:22:58 +0000, jim brown wrote:

> What is the working directory and how do I set it for a
> user account?
>
> When I sign on with my user account (non-root) I get
> "Could not set working directory to "/export/home/usersave"
> No such file or directory."
>
> admintool and passwd both show the correct home
> directory "export/home/user"
>
> I had a working "user" account but suddenly it would get
> an error on booting and refuse to complete login.
> I tried to use the Solaris Management Console" to delete
> the account but it failed. I tried to use admintool to
> delete the account - it failed trying to delete the
> home directory. I used admintool to delete the account
> but leave the home directory and that worked.
>
> My plan was to delete the home directory by hand but
> I decided to just rename it instead to "home/export/usersave"
> in case I wanted to put it back.
>
> Now I use admintool to create account "user" again.
> This seems to work but when it comes up a terminal window
> is in "/export/home/usersave" not the home directory specified
> in admintool and shown in passwd.
>
> I deleted "/export/home/usersave" and now I get the
> "Could not set working directory to "/export/home/usersave"
> No such file or directory." message but a terminal window is
> in the correct home directory.
>
> Any ideas?


Personally I prefer to use the CLI, I have never liked admintool.
It even took me years to stop vi'ing /etc/passwd shadow and group and
start using useradd.

Sounds like something in the .profile maybe ?

When you get this error , are you su'ing , telnet'ing or stating a GUI
session ?


--

Bruce
################################################## ####
# The internet is a huge and diverse community and #
# not every one is friendly" #
# http://www.ytc1.co.uk #
################################################## ####

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 07:41 PM
jim brown
 
Posts: n/a
Default Re: Could not set working directory Solaris 9

Actually, you provided the answer - give up on admintool
and use CLI. With that I was able to delete and re-add the
user and clear the problem.

It's interesting that I was using admintool because I gave up
on using Solaris Management Console. Sure seems like something's
wrong here.

Thanks for the help,

Jim

Bruce D Porter wrote:
> On Sat, 15 Nov 2003 21:22:58 +0000, jim brown wrote:
>
>
>>What is the working directory and how do I set it for a
>>user account?
>>
>>When I sign on with my user account (non-root) I get
>>"Could not set working directory to "/export/home/usersave"
>>No such file or directory."
>>
>>admintool and passwd both show the correct home
>>directory "export/home/user"
>>
>>I had a working "user" account but suddenly it would get
>>an error on booting and refuse to complete login.
>>I tried to use the Solaris Management Console" to delete
>>the account but it failed. I tried to use admintool to
>>delete the account - it failed trying to delete the
>>home directory. I used admintool to delete the account
>>but leave the home directory and that worked.
>>
>>My plan was to delete the home directory by hand but
>>I decided to just rename it instead to "home/export/usersave"
>>in case I wanted to put it back.
>>
>>Now I use admintool to create account "user" again.
>>This seems to work but when it comes up a terminal window
>>is in "/export/home/usersave" not the home directory specified
>>in admintool and shown in passwd.
>>
>>I deleted "/export/home/usersave" and now I get the
>>"Could not set working directory to "/export/home/usersave"
>>No such file or directory." message but a terminal window is
>>in the correct home directory.
>>
>>Any ideas?

>
>
> Personally I prefer to use the CLI, I have never liked admintool.
> It even took me years to stop vi'ing /etc/passwd shadow and group and
> start using useradd.
>
> Sounds like something in the .profile maybe ?
>
> When you get this error , are you su'ing , telnet'ing or stating a GUI
> session ?
>
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 07:41 PM
Bruce D Porter
 
Posts: n/a
Default Re: Could not set working directory Solaris 9

On Sun, 16 Nov 2003 19:20:19 +0000, jim brown wrote:

> Actually, you provided the answer - give up on admintool
> and use CLI. With that I was able to delete and re-add the
> user and clear the problem.


I think admintool is EOL now :=}

>
> It's interesting that I was using admintool because I gave up
> on using Solaris Management Console. Sure seems like something's
> wrong here.


I won't comment on SunMC

GUIs are not the be all and end all, they should only be used as a last
resort :=}

>
> Thanks for the help,
>
> Jim
>
> Bruce D Porter wrote:
>> On Sat, 15 Nov 2003 21:22:58 +0000, jim brown wrote:
>>
>>
>>>What is the working directory and how do I set it for a
>>>user account?
>>>
>>>When I sign on with my user account (non-root) I get
>>>"Could not set working directory to "/export/home/usersave"
>>>No such file or directory."
>>>
>>>admintool and passwd both show the correct home
>>>directory "export/home/user"
>>>
>>>I had a working "user" account but suddenly it would get
>>>an error on booting and refuse to complete login.
>>>I tried to use the Solaris Management Console" to delete
>>>the account but it failed. I tried to use admintool to
>>>delete the account - it failed trying to delete the
>>>home directory. I used admintool to delete the account
>>>but leave the home directory and that worked.
>>>
>>>My plan was to delete the home directory by hand but
>>>I decided to just rename it instead to "home/export/usersave"
>>>in case I wanted to put it back.
>>>
>>>Now I use admintool to create account "user" again.
>>>This seems to work but when it comes up a terminal window
>>>is in "/export/home/usersave" not the home directory specified
>>>in admintool and shown in passwd.
>>>
>>>I deleted "/export/home/usersave" and now I get the
>>>"Could not set working directory to "/export/home/usersave"
>>>No such file or directory." message but a terminal window is
>>>in the correct home directory.
>>>
>>>Any ideas?

>>
>>
>> Personally I prefer to use the CLI, I have never liked admintool.
>> It even took me years to stop vi'ing /etc/passwd shadow and group and
>> start using useradd.
>>
>> Sounds like something in the .profile maybe ?
>>
>> When you get this error , are you su'ing , telnet'ing or stating a GUI
>> session ?
>>
>>


--

Bruce
################################################## ####
# The internet is a huge and diverse community and #
# not every one is friendly" #
# http://www.ytc1.co.uk #
################################################## ####

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:14 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com