AndyD Posted March 28, 2015 Share Posted March 28, 2015 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? Link to comment Share on other sites More sharing options...
LaP Posted March 28, 2015 Share Posted March 28, 2015 If you see the command prompt you are logged in. If you can't access anything it's because the user you are using doesn't have the right to access anything outside of the home folder. Link to comment Share on other sites More sharing options...
AndyD Posted March 28, 2015 Author Share Posted March 28, 2015 I see it yeah but I don't think I'm logged in yet. I only used the host to remote in. A saw a colleague log in after connecting a few days ago Link to comment Share on other sites More sharing options...
AndyD Posted March 28, 2015 Author Share Posted March 28, 2015 You may be right. I just tried whoami and saw my userid. I guess it's write locked regardless. Thank you Link to comment Share on other sites More sharing options...
LaP Posted March 28, 2015 Share Posted March 28, 2015 The command to login from the prompt is simply login. But you can do it directly from putty. And anyway the command should technically be run automatically when you connect it think. Link to comment Share on other sites More sharing options...
LaP Posted March 28, 2015 Share Posted March 28, 2015 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. 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. Link to comment Share on other sites More sharing options...
AndyD Posted March 28, 2015 Author Share Posted March 28, 2015 Looks like he had ssh'd into the server after logging in. I misinterpreted what he was doing completely but understand now. Thanks guys Thanks LaP! That's helps Link to comment Share on other sites More sharing options...
+BudMan MVC Posted March 29, 2015 MVC Share Posted March 29, 2015 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. 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. Link to comment Share on other sites More sharing options...
AndyD Posted March 30, 2015 Author Share Posted March 30, 2015 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! Link to comment Share on other sites More sharing options...
Recommended Posts