1753349 Members
5102 Online
108792 Solutions
New Discussion юеВ

Re: non-login users

 
MSwift
Regular Advisor

non-login users

How do i make an ID non-login type? Say for ex. In solaris we can edit the passwd file and put *NP* which will make the id as a non-login ID. Should i put a * in the passwd file? Also i do not want this ID (which i am going to modify) not to have the ability to run the cronjobs. Please advise my options.

Thanks

Mike
7 REPLIES 7
Pete Randall
Outstanding Contributor

Re: non-login users

If they truly will NOT log in, then putting a * in the password field of the /etc/passwd file is the way.


Pete

Pete
MSwift
Regular Advisor

Re: non-login users

after the * will that id's cron run?

Thanks

Mike
James R. Ferguson
Acclaimed Contributor

Re: non-login users

Hi Mike:

Also i do not want this ID (which i am going to modify) not to have the ability to run the cronjobs.

The account should still be able to run any pre-established crontasks. If you want to also stop the account's crontasks, do:

# crontab -r username

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: non-login users

Shalom,

vipw

There are already no login users. Copy their shell and you have a new no login user.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
MSwift
Regular Advisor

Re: non-login users

Oh my bad this is HP trusted!

Thanks

Mike
Dave Polshaw
Frequent Advisor

Re: non-login users

Using /bin/false as the login shell in password file will stop them logging in but allow, for instance, ftp and rsh routines. Any good?
Knowledge speaks. Wisdom listens...
Viktor Balogh
Honored Contributor

Re: non-login users

Hi,

these two files are responsible for granting cron/at rights:

-r--r--r-- 1 bin bin 35 Aug 12 2008 /var/adm/cron/at.allow
-r--r--r-- 1 bin bin 54 Aug 12 2008 /var/adm/cron/cron.allow

If the account isn't listed, it has no right to use cron/at
****
Unix operates with beer.