How do you make a superuser?


 
Thread Tools Search this Thread
Operating Systems Solaris How do you make a superuser?
# 1  
Old 09-14-2017
Oracle How do you make a superuser?

I have just installed Solaris 11. When I turn the computer on I don't want to see a login in screen. I want to automatically be logged in as "SUPERUSER".

My research tells me someone is going to tell me that's not wise or safe. I'm not interested in security advice. If someone I know is smart enough to defeat my bios password they are more than welcome to do whatever they want to the system. And If I or someone else screw the system up, how bad could it be? Worse case, I wipe the HDD and re-install.

I want "SU" in the GUI so I can copy/past files to any director I choose. I am new to Linux and don't have a good understanding of all the terminal commands. I'm having to research the the simplest tasks, ie "mv", "ls"... At this point I don't even know if I can use wild cards with Linux commands. I need a white board on the wall so I have all the commands in front of me.

My issue is the same as one I posted in the Ubuntu thread. I want to get wifi configured on a PC that has no connection to the Internet. All my searches lead to the same answer. They all give commands to type in the terminal that require internet access. ie "user$ git http//.something..."

I have manually downloaded the driver for my wifi device to a USB drive and migrated it to the desktop of the target PC. I followed instruction to "make all" "install all" and failed. The readme file said something about "DKMS", so I downloaded that and unpacked on the desk top. Looking the files over I determined what directories these files go in. A few belong in /etc. The file manager won't let me past to this directory.

Using the terminal in the dir where these files are located I tried ~$ "sudo mv filename /etc/filename". After putting in PW it said directory not found. Then, after typing enough keystrokes to write a short story, and using 'sudo' I managed to move one file into the /etc directory. And now I have forgotten how I did it. It's like re-inventing the wheel again and again. It would be much easier if I could cut and paste.

I have no choice but to learn Linux. I salvaged these PC's from the waste collection center and can't afford to put Win OS's on them. I plan on becoming a Linux expert in time. I taught and consider myself a expert dos user. But it didn't happen over night. So if you can help me with this you 'll be my best friend Smilie
# 2  
Old 09-14-2017
There are several unrelated questions here.

You might want to ask them one by one, and better start with the technical ones like wifi support.

Also, your post mention Linux four times while this looks to be about Solaris.
This User Gave Thanks to jlliagre For This Post:
# 3  
Old 09-14-2017
For the system login I agree that the desktop does a good effort to enforce an authorization (password, token, fingerprint, ...).
You can do
Code:
sudo bash

to get a root shell. The # in the prompt tells you are root.
The root privilege is limited to this shell, and propagates to everything you start from it. It does not propagate back to you entire desktop.
--
Solaris is not Linux.
Solaris is a flavor of Unix, and Linux is somewhat compatible with Unix.
This User Gave Thanks to MadeInGermany For This Post:
# 4  
Old 09-14-2017
Quote:
Originally Posted by jlliagre
There are several unrelated questions here.

You might want to ask them one by one, and better start with the technical ones like wifi support.

Also, your post mention Linux four times while this looks to be about Solaris.
Please pardon my lack of Linux/Unix history. Something I read years back has put the idea that Linux was created on the back of Unix. It's been so long I can't explain what I read that put that idea in my head. One fact I know for sure is, I'm not educated enough to tell the difference between the two.

My issues are correlated. The primary goal is to get WIFI working on the Solaris box, which doesn't have Internet access. The only workable option I see is to download TPLINK files I need using My Ubuntu PC which connects to my neighbors UVerse via Wifi. Then migrate the files to the Solaris PC via USB drive or LINKSYS Ethernet router. Or, I have read that I can configure Ubuntu to share it's Internet access via Ethernet. I think Sharing Internet through a Ethernet router is putting the bar well above my head at this point.

Once I have files on Solaris PC I still have to put the files in the proper directory. Using cut/copy and past in the GUI would make this very easy. I need to become proficient with Linux/Unix? commands. Hopefully I still have 20 years to do so. The priority right now though, Is getting WIFI on Solaris so I can remove Ubuntu from this PC so I can start test driving another Linux/Unix distro.

Thank you for your reply.

Last edited by kkeevv; 09-14-2017 at 08:29 PM.. Reason: to remove double quote
# 5  
Old 09-15-2017
What precise model, chipset is your wifi adapter ?

What driver do you plan to install and where did you get it ?

PS: Linux might have been created on the back of Unix, whatever that means, but they are different beasts. You might name a Linux distribution a Unix, as it is Unix like, but you cannot name a (real) Unix distribution a Linux. Linux is a specific kernel not used by other Unix and Unix like OSes (and used by non Unix like OSes like Android).
# 6  
Old 09-15-2017
Re your post#1, in Solaris 11 the root user (superuser) is a 'role' by default and cannot be logged into directly, only su'd to.

This is, of course, for security reasons. However, if you so choose, you can revert user 'root' to a standard user account by issuing:#

Code:
# rolemod -K type=normal root

having previously su'd to gain superuser rights. After that, subject to setting/knowing the root user password you can log directly in as root giving you immediate superuser rights without the need to su.

Another option would be to start your system in single user which brings it up in superuser but without multiuser services such as networking. However, you could soon script yourself something to start the services you require, mount filesystems, and other things whilst you are still in single user. It just depends on whether one single user (from the console) will serve your purpose. Perhaps provide us all with more information so that we can be more specific.
# 7  
Old 09-16-2017
Quote:
Originally Posted by hicksd8
Re your post#1, in Solaris 11 the root user (superuser) is a 'role' by default and cannot be logged into directly, only su'd to.

This is, of course, for security reasons. However, if you so choose, you can revert user 'root' to a standard user account by issuing:#

Code:
# rolemod -K type=normal root

having previously su'd to gain superuser rights. After that, subject to setting/knowing the root user password you can log directly in as root giving you immediate superuser rights without the need to su.

Another option would be to start your system in single user which brings it up in superuser but without multiuser services such as networking. However, you could soon script yourself something to start the services you require, mount filesystems, and other things whilst you are still in single user. It just depends on whether one single user (from the console) will serve your purpose. Perhaps provide us all with more information so that we can be more specific.
Code:
kevin@OptiPlex-2:~$ rolemod -K type=normal root
rolemod: command not found
kevin@OptiPlex-2:~$

"start your system in single user" This sounds great, how do you do that? Are you using Solaris?


Moderator's Comments:
Mod Comment Please use CODE tags as required by forum rules!

Last edited by RudiC; 09-17-2017 at 06:14 AM.. Reason: Added CODE tags.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Adding plesk superuser from SSH

I'm trying to add a superuser (admin) to plesk from SSH (I have root access). Can this be done? I have search over the web but did not find any solution to my problem. My version is Plesk 9.3 (0 Replies)
Discussion started by: galford
0 Replies

2. UNIX for Dummies Questions & Answers

Superuser

Hello! I found this on net: This is the ``prompt''. If you entered you username, or your password incorrectly, you will be greeted by: Login incorrect localhost login: Don't panic, try again. Likely you either mis-typed either your login name, or your password. Try again. You're not... (2 Replies)
Discussion started by: pinklemon
2 Replies

3. Solaris

Solaris superuser login

Hi! Can someone please tell me how to log-in to Solaris as a superuser or as a root? I have tried using "root" as a username, and my superuser password i had set in the terminal for the log-in password but it says "Roles can only be assumed by authorized users". "Permission denied." I'm... (1 Reply)
Discussion started by: CarlosP
1 Replies

4. Solaris

superuser without prompting for pswd.

I have a korn shell script (main.sh) owned by unix account "A". I want to execute certain lines in the script using another user "B" (with user "B" login profile). I need to do this way for multiple lines to be executed using different unix accounts in main.sh. I was trying to use "su -... (3 Replies)
Discussion started by: Ashok_107
3 Replies

5. Shell Programming and Scripting

to run sql as superuser

hi All, In my script I want to run some drop and select statements in the same host as a different user.I am inputting password for the superuser from the user who will be executing the script. ie , I would be greatfull to you experts if you could suggest me how to proceed. (4 Replies)
Discussion started by: Sreejith_VK
4 Replies

6. UNIX for Dummies Questions & Answers

SuperUser

Can I create a superuser account in scoadmin? If not how do I do it via command line (0 Replies)
Discussion started by: maconte
0 Replies

7. UNIX for Dummies Questions & Answers

runing a script as superuser

My first post: in /etc/rc2.d i have a startup script: Script1. if you run #>scirpt1 stop/start from any user other than root you will get u must be supper user to run this script. eventhough the rights are 777. Question: how can i get my user_a be able to run this script to stop and start it... (2 Replies)
Discussion started by: bcheaib
2 Replies

8. UNIX for Advanced & Expert Users

No user able to login except root(superuser)

Hi All, Oracle 8.0 database is running on SCO-UNIXWARE 7.0 Operating system. Some how ORACLLE DATABASE has crashed. After rebooting the PC only the SUPER USER could login. No other user is able to login. we need ORACLE user to start the DATABASE again. It is asking for the password, after... (2 Replies)
Discussion started by: konda
2 Replies

9. UNIX for Dummies Questions & Answers

superuser password change

how can i change the superuser password? the admin left the company, and we want to change the password. to gain su access, i use: # su - password:***** (old password) then, using passwd command it changes my own login password, not the root?? (this is not trying to block anybody's... (4 Replies)
Discussion started by: apalex
4 Replies
Login or Register to Ask a Question