August 11, 2020, 01:30:39 AM

News : LinuxSolved.com Linux Help Community Forum..


Recent Posts

Pages: [1] 2 3 ... 10
1
Miscellaneous / Centos 7 - no message log at all in /var/log- all blank
« Last post by Saahib on May 18, 2020, 08:26:01 PM »
Hi,

Today I noticed that one of the Centos server I used, there are no logs being updated. Log rotation is working as but all current files are blank.
Nothing in
/var/log/messages
/var/log/maillog

Some logs are working like /var/log/lfd.log ( I am using csf firewall).

I have been going through various topics online where people might have deleted or messed up permission of /var/log folder. But nothing so far . I even did side by side comparison of permission with a similar server. I don't see anything messed, all is good. Interesting thing is that everything is working fine.

Following online advices, I reinstalled rsyslog as it may fix the permission if they are messed:
Code: [Select]
yum remove rsyslogThen
Code: [Select]
yum install rsyslog
Checking rsyslog status say its running .
Interesting thing is that even though no logs are being logged, all services are running fine on server. I think its more than 2 weeks since they are not working.

Is there any command or system to restore default permission of /var/log  ?

I don't want reinstall, it will be lots of headache given amount of data on the server.
2
Linux Servers Support / Re: Regular user Can't SSH using public Key but root can
« Last post by Saahib on May 18, 2020, 08:16:11 PM »
Oh man, it was driving from many days, it was indeed permission problem . I had checked actually , permission were 644 and ownership was also correct (owned by the user) however.

Looking around I found that we need following permission, I am sharing here for future reference:
Code: [Select]
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys

Problem was that I was comparing permission with root .ssh and its content but that doesn't work for regular user.
3
Linux Servers Support / Re: Regular user Can't SSH using public Key but root can
« Last post by dalek on May 18, 2020, 01:46:12 AM »
I would check permissions of the key files and also check to be sure the user is a member of the correct groups.  I haven't used ssh in ages but seem to recall it requiring being a member of a certain group.  Given your output, it seems to be trying so that leads me to believe it is a permission issue with the key files.  I'd suggest setting it to be readable by all but only writable by root.  It may be that it can see the file exists but is unable to read the contents of the file. 

Hope that helps.
4
Linux Servers Support / Regular user Can't SSH using public Key but root can
« Last post by Saahib on May 18, 2020, 12:19:59 AM »
Hi,

This is driving me nuts from few days. I have server where I can login as root user through SSH using public key authentication. I then added new user with SSH.

Added new user :
Code: [Select]
adduser  -m newUser
Created password for it :
Code: [Select]
passwd newUser
Added .ssh/authorized_keys with client machines public key (which is I am already using to log into as root from this client)
Code: [Select]
echo "key here from client" >> /home/newUser/.ssh/authorized_keys
I have double checked, triple checked.  Same key works for root login but not for new user.

I tried ssh to ssh with -v ,then last few lines:

Code: [Select]
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /root/.ssh/id_rsa
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Trying private key: /root/.ssh/id_dsa
debug1: Trying private key: /root/.ssh/id_ecdsa
debug1: Trying private key: /root/.ssh/id_ed25519
debug1: Next authentication method: password
newUser@server.com's password:

It looks like its my ssh server is not able read publickey ? I can login using password though.

I have done this in past many times, for root and normal user but this time its not working, driving me nuts...

I am sure I am making some tiny mistake.. but where it is ?
5
HI,

I just started using borg and something weird I notice. Borg Backup is really nice with all its things but one of the recent backup I see that size of repository is way larger than actual files in it.

I have two files on is 66GB and other is 3.5GB, I uploaded them in a repo of BORG, here is its stats:

Code: [Select]
Original size      Compressed size    Deduplicated size
All archives:              144.23 GB             74.51 GB             31.86 GB

                       Unique chunks         Total chunks
Chunk index:                   21015                47457
So what is is , even after compression, its 74GB and there is deduplication data too.

Anyone has got any idea what I am seeing here ?
6
Other Devices / Data Recovery Over Hard Disk Failure
« Last post by ronaldassus on April 15, 2019, 11:20:10 AM »
HEY,
        Techies
          Can we attach a hard disk to a dvd player to watch movies from hard disk.

Thanks-
Bhavishya
7
Os Talk / Why I am moving to linux
« Last post by ronaldassus on April 12, 2019, 11:41:07 AM »
Linux is an operating system for computers, its public domain and works on a variety of cpus and equipment ...
8
Linux Application / Ambiguous output redirect issue
« Last post by Brianhauro on March 16, 2019, 11:27:53 AM »
Same problem here, on a TP-Link WR1043ND with OpenWRT Backfire. Is there any way for circumventing this issue?
Thanks.
9
Linux Servers Support / Copy files to Remote Server
« Last post by Brianhauro on March 11, 2019, 05:14:18 AM »
I got it working.  I just have to copy the files to the same place on the server that my other html files are located.
10
Forum Suggestion & News / Re: Spam bots.. We have to do something
« Last post by dalek on March 07, 2019, 09:45:14 PM »
You don't have to worry about that.  It takes a few days but eventually, I get rid of the spammers. 
Pages: [1] 2 3 ... 10