Koozali.org: home of the SME Server

Upgrade from 7.5.1 fail

Offline glashoppah

  • *
  • 12
  • +0/-0
Re: Upgrade from 7.5.1 fail
« Reply #15 on: June 15, 2015, 07:06:31 PM »
The command "config setprop" documented at the bottom of the Remote User Access link looks promising - it's close to what I want.  However, I can find no apparently exhaustive list of such possibilities.  The documentation on DB variables I found here:

http://wiki.contribs.org/DB_Variables_Configuration#Console_Mode

does not even list the ftp option, much less a TTY shell option.

This was trivial "back in the day", when one only needed to modify /etc/passwd.  There must be a place to change this for this one user.  I don't care about any defaults for all users, just one of them.

Thanks again.

G.

Offline glashoppah

  • *
  • 12
  • +0/-0
Re: Upgrade from 7.5.1 fail
« Reply #16 on: June 15, 2015, 07:29:41 PM »
FYI - location of default home is in /etc/cpu.conf, however that conf file is generated elsewhere.  I've been able to modify the /etc/passwd- file and get the behavior I want, but I'd like to get the entry inserted in whatever database needs it so /etc/passwd- doesn't get re-genned and break the user.

G.

Offline glashoppah

  • *
  • 12
  • +0/-0
Re: Upgrade from 7.5.1 fail
« Reply #17 on: June 15, 2015, 07:31:01 PM »
That's what I'd advise too.

Exactly what I ended up doing.  :)

G.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Upgrade from 7.5.1 fail
« Reply #18 on: June 15, 2015, 07:51:02 PM »
There must be a place to change this for this one user.

There isn't. Why do you want to change that one user?

Offline glashoppah

  • *
  • 12
  • +0/-0
Re: Upgrade from 7.5.1 fail
« Reply #19 on: June 15, 2015, 07:53:49 PM »
There isn't. Why do you want to change that one user?

So I can have that one user drop into a different home directory than the default upon login?

G.

Offline glashoppah

  • *
  • 12
  • +0/-0
Re: Upgrade from 7.5.1 fail
« Reply #20 on: June 15, 2015, 08:24:50 PM »
There isn't.

Actually there is:  modifying the final field in the user's entry in /etc/passwd- gave me the effect I wanted.  However, given that pretty much every control file in here has some process which comes along and regenerates it from time to time from a database, I'd like to know if there's a database that governs /etc/passwd- so I can ensure the change is permanent.

G.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Upgrade from 7.5.1 fail
« Reply #21 on: June 15, 2015, 09:19:34 PM »
So I can have that one user drop into a different home directory than the default upon login?

G.

you did not answer to Charlie's question: why?

please, explain what you are trying to achieve, not your solution

thank you

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Upgrade from 7.5.1 fail
« Reply #22 on: June 16, 2015, 05:58:23 PM »
However, given that pretty much every control file in here has some process which comes along and regenerates it from time to time from a database...

/etc/passwd isn't generated from a database.

As you've discovered, usermod can change a user's home directory. If you do that, I'm sure some things will break - e.g. backup/restore, mail, ftp or samba. Just warning you...

Offline glashoppah

  • *
  • 12
  • +0/-0
Re: Upgrade from 7.5.1 fail
« Reply #23 on: June 16, 2015, 06:09:24 PM »
/etc/passwd isn't generated from a database.

As you've discovered, usermod can change a user's home directory. If you do that, I'm sure some things will break - e.g. backup/restore, mail, ftp or samba. Just warning you...

Cool.  I noticed that manually modding the /etc/passwd file did the trick (also changed the user's shell with it), like in the "good old days", and after over a day it's still there.  Appreciate the warning, no need for any of those services so I'm A-OK. 

Thx again,

G.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Upgrade from 7.5.1 fail
« Reply #24 on: June 16, 2015, 08:29:08 PM »
Appreciate the warning, no need for any of those services so I'm A-OK.

You could have just used 'useradd' to create your non-standard user, and ignore the UI. That would have been even more like the "good old days".