I used putty to connect to a server - how do I actually log in?


Recommended Posts

Sorry, I am a complete newb when it comes to Unix and I should know better by now.

 

Anyway, I'm able to connect to a server using Putty but directories are write locked and it's likely because I haven't really logged in yet.  How do I login after connecting to a server?

You can do the command groups to know i which group you are.

 

Then you can do ls -la to see a listing of the files.

 

Ls_command_result.png

 

The first column is the right of the files. First letter is the type i think. Next 3 letters the right for the owner. Next 3 letters the right for the group and the next 3 letters the right for everyone. r = read. w = write. x = execute. The next column is the owner of the file and the following column the group.

 

IN this screenshot the owner is root and the group is root. Mostly all files are read only for people not root . So if you are not logged in as root you can just read them.

quite often user account does not have permissions on the system - what files are you trying delete/create/edit - what directory are you in?  Normally once you login as you, you would su up to root to get access to whatever it is you need to access on the system other than your own files, etc..

 

I use kitty vs putty (just a fork with some added features).. So I auth as budman with public key, I always disable password auth on any ssh box I run.. especially if public facing, etc.

 

post-14624-0-45996000-1427643316.png

 

So you can see I auth as budman using my public key, not really new anymore from 2012, but the old one was from pre 2ks ;)

 

So I am logged in as budman you can see that at prompt, and I am in the folder /home/budman - I thin su up and put in my password and now I am root still in the /home/budman folder.

Hey.  It looks like specific folders are locked down because we have to CVS changes.  I can't actually write into specific folders because it's locked down to a system account.  I ended up creating the files in a folder I could access.  Thank you!

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.