RedHat – Not reading root volume based on LVM

Environment Red Hat Enterprise Linux 4 Red Hat Enterprise Linux 5 Red Hat Enterprise Linux 6 Red Hat Enterprise Linux 7 EXT and XFS file system Rescue Mode Issue How to repair filesystem in rescue mode for Red Hat Enterprise Linux System won't load after boot, requests fsck of root file system / (root) filesystem … Continue reading RedHat – Not reading root volume based on LVM

Advertisements

NFS “nobody” file permission issue

Files in mounted folder owned by nobody:nobody – I’ve tried to change using chown with the existing username and group which also present on the NFS server but still nobody:nobody. A:  If you are not using NFSv4 check the user is recognized/present on client and servers. If it s a local user on the client … Continue reading NFS “nobody” file permission issue

SFTP – Connections and File Permissions – Part 3

In the last couple of posts SFTP - Connections and File Permissions - Part 1 and SFTP – Connections and File Permissions – Part 2 we configured sftp and looked at the effect of umask when transferring files using sftp. In this post we will configure restricting users to their home directories using chroot.. Before we configure … Continue reading SFTP – Connections and File Permissions – Part 3

SFTP – Connections and File Permissions – Part 2

So in our last post SFTP – Connections and File Permissions – Part 1 we discussed SFTP connections, file permissions and the effect of "umask". One thing we should make a note that SFTP server binary is "/usr/libexec/openssh/sftp-server" which we can see in sshd config file. I've also updated "test2" user umask to 0077 and deleted … Continue reading SFTP – Connections and File Permissions – Part 2

SFTP – Connections and File Permissions – Part 1

We did SSH setup as mentioned in SSH setup – Key based authentication In this article lets talk about "umask" and file permissions while doing SFTP. When a "user" is created - default "umask" is 0002(---w) - meaning no write permission for others. When the "user" creates a file : the default file permission subtract … Continue reading SFTP – Connections and File Permissions – Part 1

Packages and Services

FTP yum install vsftpd firewallcmd --permanent --add-service=ftp systemctl enable vsftpd systemctl start vsftpd NTP yum install ntp systemctl enable ntpd systemctl start ntpd OpenLDAP yum install openldap openldap-clients nss-pam-ldapd authconfig authconfig --enableldap --enableldapauth --ldapserver=ldap://ldap.server.com --ldapbasedn="dc=example,dc=com" --update NFS yum install nfs-utils SAMBA yum install cifs-utils samba-client AutoFS yum install autofs