No Password - - Setuid Only Option in Solaris 10


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers No Password - - Setuid Only Option in Solaris 10
# 1  
Old 08-21-2007
No Password - - Setuid Only Option in Solaris 10

In Solaris 9, when I built users, there was an option for No Password -- Setuid Only. Now that I'm using Solaris 10, I no longer can find that option.

Is there an equivalent option of No Password --Setuid Only in Solaris 10?

Thanks,
LeonD
# 2  
Old 08-24-2007
In the /etc/shadow file you have the encrypted passwords for each user. There are several fields separated by ':' characters. The 1st field is the username the 2nd is the 13 character one way has of the users password.

If you change this 2nd field to anything other than a 13 character string then you will be unable to login to it using a password and will only be able to su to the account from root.

Classically this field would read '*LK*' for locked accounts, but it doesn't really matter what it is, if its now a valid 13 character password hash then you can only su to the account.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

What keeps me from abusing setuid(0) and programs with setuid bit set?

Just learning about the privilege escalation method provided by setuid. Correct me if I am wrong but what it does is change the uid of the current process to whatever uid I set. Right ? So what stops me from writing my own C program and calling setuid(0) within it and gaining root privileges ? ... (2 Replies)
Discussion started by: sreyan32
2 Replies

2. Shell Programming and Scripting

Notable to use password option in zip command

zip -P abc -r FBE_SalesRepAccount_20170913125741.zip FBE_SalesRepAccount_20170913125741.txt zip error: Invalid command arguments (encryption not supported) zip -v Copyright (C) 1990-1999 Info-ZIP Type 'zip "-L"' for software license. This is Zip 2.3 (November 29th 1999), by Info-ZIP.... (1 Reply)
Discussion started by: alokjyotibal
1 Replies

3. Solaris

Need grep package with -A option for Solaris 10

Hi Guys, I need grep package with -A option for Solaris 10, Where can I download this from, Please advise. (2 Replies)
Discussion started by: manalisharmabe
2 Replies

4. Solaris

-w option in fgrep for Solaris

I want to use fgrep for a word serch ignoring case and it should dispaly word count along with the file name. I m using below code fgrep -wci string filenames But it is giving error Usage: fgrep pattern_list fgrep ... ... I have checked the man page... (11 Replies)
Discussion started by: millan
11 Replies

5. UNIX for Advanced & Expert Users

su option is not fetching the password

Hi, Please find the below code. function ABC { echo "Enter Element Name:" read ename echo "Enter Element Source path:" read spath echo "Enter Element Destination path:" read dpath echo "cp -p $spath/$ename $dpath/$ename" echo... (8 Replies)
Discussion started by: gthangav
8 Replies

6. UNIX for Dummies Questions & Answers

Removing setuid option for security.

According to Security standards given in https://www.stanford.edu/dept/as/ia/security/policies_standards/AS_standards/RH_linux_prod_sec_std_1.0.1.html Being a production system i want to implement the same on our server. but when i tried finding other files i got following output. # ls... (5 Replies)
Discussion started by: pinga123
5 Replies

7. UNIX for Advanced & Expert Users

Problem with useradd, -p option in Solaris 10

Good day all. I'm trying to add a user with useradd and the -p option to assign a project name, but the result is that the user is created with an error message: "UX: useradd: user.root name should be all lower case or numeric." The command: useradd -d /export/home/tester -g rtpgrp -G... (2 Replies)
Discussion started by: BRH
2 Replies

8. Solaris

Solaris 9 : DHCP Option 43 and 60

Hello, I need to configure a Cisco VLAN Accesspoint with DHCP using Solaris dhtadm & pntadm Network: 10.10.122.0 255.255.255.0 Default Router 10.10.122.1 Scope Range 10.10.122.10 - 254 Option 60 “Cisco AP c1142” Option 43 ... (0 Replies)
Discussion started by: fredy82
0 Replies

9. Solaris

date -d illegal option in Solaris

Hi All, Is it possible to run date -d option in Solaris? Do we have a work around so that -d option will be recognized by solaris as it is recognized by linux. I need this since i am using this in scripting and it works in Linux box. my problem is it doesn't work in solaris box. ... (6 Replies)
Discussion started by: linuxgeek
6 Replies

10. Programming

Solaris C compiler option -Xc

Anyone know what the -Xc option does? Is there an equivalent option for the Gnu compiler? :confused: (3 Replies)
Discussion started by: BCarlson
3 Replies
Login or Register to Ask a Question