Troubleshooting

I want to change the password aging for one user, but not the defaults as shown earlier in the chapter. How can I do this?

Use the chage (change-aging) program. The chage man page provides the information you need.

I tried to use COAS to add a new user, but the program said the passwd file was locked.

If COAS exits abnormally while you are adding users, it will not properly clean up after itself. You need to remove the following files in /etc: pwtmp, passwd-, and shadow-. You should not have any further problems.

I have a shell script I want to let other people run. I set the execute bit on the file with chmod 711, but they can't run it.

Binary files can be made execute-only and will run. For shell scripts to run, ...

Get Special Edition Using Linux®, Sixth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.