What Does Su -l Do...and Why Would You Have To Sudo It

hi guys,

saw a video where the instructor wanted to login as root

he went...

sudo su -l

i see the -l option is -l, --login
Start the shell as a login shell with an environment similar
to a real login:

but i dont understand the significance of this...why couldnt you just go
su
login


Similar Content



Bash Script Non-interactive Login Shell

Hi

I'm focusing on getting my head around interactive v non-interactive shells, both non-login and login. Basically what scripts are run and how local and global variables behave.

I'm pretty much there except for 'non-interactive login shells'. I understand that 'non-interactive' shells are started when a script is run. However, if I start my script with #!/bin/bash --login, then a 'non-interactive login' shell will be started.

In my mind I would have expected this to be the same as logging in from scratch, albeit without a user\password prompt. In this case I would have thought that any exported variables from the parent shell would be blown away. This doesn't appear to be the case. The 'non-interactive login' shell appears to inherit the environment of its parent 'interactive' shell.

Can anyone explain the purpose of a 'non-interactive login' shell and how they behave in this regard.

Hope this makes sense.

Cheers

Mike

Wont Login

hello everyone,

when i press intro to login, the pc act like a refresh page... no login at all,

i guess is because i dont have space in the system(debian)part.

so im wondering if i remove olds kernels i can get some free space, if this not help,

any idea?

thanks in advance.
regards ramx

No UTMPX Entry, You Must EXEC "login" For The Lowest "shell"

I have this message in Suns 5.10 sparce server " No UTMPX entry, You must EXEC "login" for the lowest "shell" " and then the shell screen disappeared whenever I enter the password , so I can't never login to the server . So pleas help me

Having Issues With Making Use Of Linux On Vmware.

Hi, I downloaded an ISO linux file for my Vmware it was with a read me file that show the login details into the OS. Now have finished the installation of the ISO on my Vmware but the problem I have is it not accepting the login details that came with the ISO I download.
this was the login that came with the ISO:

standard user:
username: user
password: password

administrative user:
username: root
password: password
It not accepting any of it I want to know if I did something wrong or there is master login deatils I can use to get to the desktop.
Am a real newbie this is my first time of dealing with Linux your answers will be appreciated a lot. Thanks.

How To Setup System Login Banner And Login Message

I am trying to setup my Fedora Core 2 Login banner and Login Message to something different. Where do I go or what do I need to do to achive this?

No UTMPX Entry, You Must EXEC "login" For The Lowest "shell"

I have this message in Suns 5.10 sparce server ( No UTMPX entry, You must EXEC "login" for the lowest "shell" ) and then I can't access to the server at all . When I write the password the page disappeared . So pls help me how to solve this problem... Thanks a lot

Jamal

How To Eliminate Password Requirement On Login Ubuntu 15.05

Trying to eliminate login password requirement ubuntu 15.04.
instructions say

sudo visudo

I can make changes but have no idea how to save and exit!

CentOS 7 Login Fail

CentOS Linux 7 (core)
Kernel 3.10.0-299.el17.x86_64 on an x86_64
local host login:kd
[kd@localhost ~]$

The above is what displays on a black screen.
The program was d/l to DVD and then installed on a usb stick and booted from there. No password.

This is the second installation. On the first, a pw was specified but at login, it would not accept input from the keyboard except the enter key which resulted in Incorrect Password.

Help would be much appreciated.

File Upload From Putty To A Secured Website

->Need to upload a file from Unix box(Putty) to a website.

->Tried Wget and curl to upload a file to that website, when ever i am trying to fire the command its redirecting to Login page.

->for this purpose i have used cookies option to pass the Login information next time, but its giving empty cookie file and returning entire HTML page.

->used various options like redirecting,load cookies, for wget and curl, but everything is going in vain.

->Normally browser login process for that website is :

1.Login page www.example1.com/login and provide username and password
2.redirected to another URL www.example2.asp and after clicking on a folder icon.
3.it is getting redirected to another URL www.example3.com/folders.do?id=12433434324

i have to upload the file in the third URL and to a particular folder in that page, folders are containing different ids.

Please share your knowledge on this and provide solution as best as you can ,thanks

Hydra To Know Root Password Of My Router

i need to know how to set hydra in order to get the correct result of my router

Code:
hydra 192.168.1.1 -l accountid -p accountpw http-post-form "/cgi-bin/sysconf.cgi?page=login.asp&action=login:user_name=^USER^&user_passwd=^PASS^:/loginFailed.asp" -f -vV -e nsr

and this is the source login page where i type the accountid and the accountpw to view the status

http://pastebin.com/ZqhDzDQY