Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] How to change login dir?



Try "su - postgres"

"su" does not change the current directory.

br.



On Sat, 2002-08-31 at 21:38, Jean-Christian Imbeault wrote:
> I'm trying to change the home directory of a user but it's not working.
> 
> I did:
> 
> #usermod -d /usr/local/postgres/work postgres
> 
> and then checked the changes with:
> 
> #cat /etc/passwd | grep postgres
> postgres:x:500:500::/usr/local/pgsql/work/:/bin/bash
> 
> So it seemed that the home dir of theuser was changed.
> 
> But if as root I 'su postgres' I stay in the same dir I was in.
> 
> How can I set it so that is I su to another user I get put in their "home" 
> directory as set in /etc/passwd?
> 
> Jc
> 
> 
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos: 
> http://photos.msn.com/support/worldwide.aspx
> 
> 
> *************************************************
> TLUG server is hosted by Global Online Japan
> http://home.gol.com/index_e.html
> *************************************************
> 
> =================================================
> To unsubscribe from this mailing list, 
> please see instructions at
> http://www.tlug.jp/list.html
> =================================================
> 
-- 
WWJD?  JWRTFM!!
  -- /.

Attachment: signature.asc
Description: This is a digitally signed message part


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links