I done chown for a directory but i haven't permission to go in it !!!
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What is the filesystem used that is mounted on /mnt/lfs/? Is it mounted read only, or a foreign filesystem such as fat32? If the filesystem is corrupt, the kernel will change access to read only to prevent further corruption.
What does `ls -d /mnt/lfs/ /mnt/lfs/tools' show for the ownership and permissions? If root is denied x access to /mnt/lfs/ then it can't enter to change /mnt/lfs/tools/.
file system is : /dev/sdb1 Type: ext4 mount point : /mnt/lfs
and
root@UBUNTU-32bit:/home/user# ls -d /mnt/lfs/ /mnt/lfs/tools
/mnt/lfs/ /mnt/lfs/tools
root@UBUNTU-32bit:/home/user#
I change mount point of this file system manually in fstab ( I add this new partition to fstab) and change /etc/mtab file from
root@UBUNTU-32bit:/# ls -ld /mnt/lfs/ /mnt/lfs/tools
drwx------ 3 user user 4096 Aug 13 11:57 /mnt/lfs/
drwxr-xr-x 5 lfs root 4096 Aug 13 14:15 /mnt/lfs/tools
root@UBUNTU-32bit:/#
root@UBUNTU-32bit:/etc# mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
gvfs-fuse-daemon on /home/user/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=user)
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)
/dev/sdb1 on /mnt/lfs type ext4 (rw)
root@UBUNTU-32bit:/etc#
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.