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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| |||
| 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 # ################################################## #### |
| |||
| 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 ? > > |
| ||||
| 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 # ################################################## #### |