LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   lsattr: Inappropriate ioctl for device While reading flags (https://www.linuxquestions.org/questions/linux-software-2/lsattr-inappropriate-ioctl-for-device-while-reading-flags-910119/)

rch 10-25-2011 03:36 PM

lsattr: Inappropriate ioctl for device While reading flags
 
For one of our servers, if I do lsattr /home, I get something like this (as root):
Code:


$lsattr /home
lsattr: Inappropriate ioctl for device While reading flags on /home/user
lsattr: Inappropriate ioctl for device While reading flags on /home/user
lsattr: Inappropriate ioctl for device While reading flags on /home/DIR

Now, I try to change something with chattr
Code:

$chattr -R -i /home
chattr: Inappropriate ioctl for device while reading flags on /home

Mount returns:
Code:

$mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda3 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)

I have no clue how to fix this. Could somebody help?

smallpond 10-26-2011 03:13 PM

what is printed by:
Code:

ls -lZ /home

rch 10-26-2011 03:15 PM

I have turned off Selinux on this computer. So the issue of Selinux should not arise.
Thanks

rch 10-27-2011 09:12 AM

Fixed. cat /proc/mounts returned automount in /home/DIR where I had initially set users to login automatically for LDAP logins. I removed the option later on- and restarted autofs. But somehow it still was on /proc/mounts. That's why lsattr was not working.


All times are GMT -5. The time now is 08:28 PM.