Solaris 10 root shell change


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris 10 root shell change
# 8  
Old 05-11-2006
A dynamicly linked su.static... Smilie

Amazing info, pressy! You weren't kidding when you said "everything". There is not even a libc.a anywhere on the box! I retract my statement about the possibility of seeing a staticly linked shell. Sun has burned their bridges behind themselves too thoroughly for that.
# 9  
Old 05-12-2006
For those that don't know the difference between static and dynamic libraries.

When using a static library, the linker finds the bits that the program modules need, and physically copies them into the executable output file that it generates. For shared libraries, it doesn't --- instead it leaves a note in the output saying `when this program is run, it will first have to load this library'. Obviously shared libraries tend to make for smaller executables; they also use less memory and mean that less disk space is used.

You can also make changes to the libraries without a need to re-link or recompile your code.

I took this from this page. It does a good job of explaining it.

http://www.cs.concordia.ca/~comp229/Libraries.htm


-X
# 10  
Old 05-12-2006
Quote:
Originally Posted by x96riley3
When using a static library, the linker finds the bits that the program modules need, and physically copies them into the executable output file that it generates. For shared libraries, it doesn't --- instead it leaves a note in the output saying `when this program is run, it will first have to load this library'. Obviously shared libraries tend to make for smaller executables; they also use less memory and mean that less disk space is used.
With something like stdio, a single shared library serves all of the programs to use printf, getc, etc; and yes, that saves a lot of memory. But now consider a single program that needs, say, a square root function. With archive libraries, we can the square root function out of the math library and build the program. With shared libraries, we must load the entire shared library into memory. Routines like log(), cos(), atan2(), gamma(), etc get loaded whether you use them or not. This leads you down a different path and you design libraries differently. Instead of a math library, you really want algebra, trig, statistics, and calculus libraries. And rather than loading a library with features, you want them "lean and mean". With archive libraries, it was cool to have a hyperbolic cosine function. With shared libraries, I'm thinking "who needs those hyperbolic trig routines?" Libraries are now a place to put very commonly used routines. They are no longer collections of functions in a general sense.
# 11  
Old 09-22-2008
I know this thread is a couple years old, but I am trying to get a definitive answer on the Solaris 10 root default shell question. It seem the only place I can find anyone drawing a line in the sand and saying it is ok to have BASH or KORN as the default root shell is in forums like this.

Has Sun published this anywhere? I tried looking in BigAdmin and found nothing. You'd think there would be more discussion regarding this. After all BASH is a very popular shell, and BOURNE can be a PIA.

Please post any links that may be relevant, here is one that Google keeps putting up top:

Did you know: root shell in Solaris 10 - Solaris 10: tips and tricks for system administration

-Bob
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Can a root role change the root password in Solaris 10?

i do not have root on a solairs 10 server , however i do have the root role, i was wondering if I can change the root password as a a role with the passwd command? I have not tried yet. and do i have to use the # chgkey -p afterwards? i need to patch is why i am asking. thanks (1 Reply)
Discussion started by: goya
1 Replies

2. Ubuntu

Root access that can't change root password?

We are having a little problem on a server. We want that some users should be able to do e.g. sudo and become root, but with the restriction that the user can't change root password. That is, a guarantee that we still can login to that server and become root no matter of what the other users will... (2 Replies)
Discussion started by: 244an
2 Replies

3. Shell Programming and Scripting

Need Help:Shell Script for Solaris to change the dates in a file by one week

I have to increase the date by one week in an input when script is executed in solaris. I was able to acheive this using ksh script that is working in Linux enivironment, when i execute the same script in Solaris i am getting below error: /var/tmp\n\r-> ./script.ksh date: illegal option -- d... (3 Replies)
Discussion started by: sriramanaramoju
3 Replies

4. Solaris

Can't change root password in solaris express 11

How do I change root password in SolarisExpress 11? I used passwd while elevated to root and all it changes is the password of the user I am logged in, not te root password. (2 Replies)
Discussion started by: taltamir
2 Replies

5. Solaris

Solaris 8 - Asks for current root password when trying to change root password.

Hello All, I have several solaris boxes running Solaris 8. When changing root passwords on them, all will simply ask for the new root password to change and of course to re-type the new password. One of the systems however asks for the existing root password before it will display the new password... (8 Replies)
Discussion started by: tferrazz
8 Replies

6. Solaris

root can not change the permission of old oracle archive directory in solaris 8

I am using oracle 9i with sun solaris 8 on Sun E 250 server.earlier we are taking backup of oracle archive files on /orabackup directory.in which archive file are stored with ...arc.Z extension. now we have changed the archive backup directory.now when we are trying to delete earlier directory... (3 Replies)
Discussion started by: mahanalok
3 Replies

7. Shell Programming and Scripting

how to change root password using shell script with standard password

Hi Friends. I am new to scripting now i want to change the root password using the script with standard password. which is the easy scripting to learn for the beginner, Thanks in advance. (2 Replies)
Discussion started by: kurva
2 Replies

8. UNIX for Dummies Questions & Answers

Change root prompt (Solaris)

Hello all. I was wondering if there is a way to change the root prompt. I am using Solaris 10 and would like to have the root prompt display the current directory along with 'SU' to indicate root status. What I have tried so far: /etc/passwd changed the root shell to korn with... (10 Replies)
Discussion started by: RobertSubnet
10 Replies

9. AIX

Can't login root account due to can't find root shell

Hi, yesterday, I changed root's shell in /etc/passwd, cause a mistake then I can not log in root account (can't find correct shell). I attempted to log in single-mode, however, it prompted for single-mode's password then I type root's password but still can not log in. I'm using AIX 5L version 5.2... (2 Replies)
Discussion started by: neikel
2 Replies
Login or Register to Ask a Question