Tan Chee Sin
2006-Nov-22 01:51 UTC
[Fedora-xen] Cannot create files or dirs even as root on FC6 xen system
Hi, I''ve installed a FC6 xen guest system and there is a /misc folder which I want to create files and directories. I get a permission denied when I try to do so even when I am root. # pwd /misc # mkdir test mkdir: cannot create directory `test'': Permission denied When I do a directoy listing on /, misc is 0 bytes. drwxr-xr-x 2 root root 0 Nov 21 13:24 misc I have listed the disk space usage and the fstab below. # df -k Filesystem 1K-blocks Used Available Use% Mounted on /dev/xvda1 11904588 1830176 9459928 17% / tmpfs 768000 0 768000 0% /dev/shm /dev/xvda3 5431008 171288 4979388 4% /var # cat /etc/fstab LABEL=/1 / ext3 defaults 1 1 devpts /dev/pts devpts gid=5,mode=620 0 0 tmpfs /dev/shm tmpfs defaults 0 0 proc /proc proc defaults 0 0 sysfs /sys sysfs defaults 0 0 LABEL=/var /var ext3 defaults 1 2 LABEL=SWAP-xvda2 swap swap defaults 0 0 I''m not sure if this issue happens only on FC6 xen but I am able to create files and directories on a FC5 xen system. cheesin
W Craig Trader
2006-Nov-22 03:47 UTC
Re: [Fedora-xen] Cannot create files or dirs even as root on FC6 xen system
Cheesin ... Do you have the autofs daemon running, and does your /etc/auto.master file reference mounting devices on /misc, using the definitions in /etc/auto.misc? Once upon a time, RedHat Linux used autofs to dynamically mount the CDROM on /misc/cdrom; if you''ve got an older system that''s been upgraded, you might still have a remnant of that style of configuration. If you run "ps aux | grep automount", it will show you which mappings are active; if you see something like "/usr/sbin/automount --timeout=60 /misc program /etc/auto.misc" you''ve found the culprit. - Craig - Tan Chee Sin wrote:> Hi, > > I''ve installed a FC6 xen guest system and there is a /misc folder > which I want to create files and directories. I get a permission > denied when I try to do so even when I am root. > > # pwd > /misc > # mkdir test > > mkdir: cannot create directory `test'': Permission denied > > When I do a directoy listing on /, misc is 0 bytes. > > drwxr-xr-x 2 root root 0 Nov 21 13:24 misc > > I have listed the disk space usage and the fstab below. > # df -k > Filesystem 1K-blocks Used Available Use% Mounted on > /dev/xvda1 11904588 1830176 9459928 17% / > tmpfs 768000 0 768000 0% /dev/shm > /dev/xvda3 5431008 171288 4979388 4% /var > > # cat /etc/fstab > LABEL=/1 / ext3 > defaults 1 1 > devpts /dev/pts devpts > gid=5,mode=620 0 0 > tmpfs /dev/shm tmpfs > defaults 0 0 > proc /proc proc > defaults 0 0 > sysfs /sys sysfs > defaults 0 0 > LABEL=/var /var ext3 > defaults 1 2 > LABEL=SWAP-xvda2 swap swap > defaults 0 0 > > I''m not sure if this issue happens only on FC6 xen but I am able to > create files and directories on a FC5 xen system. > > cheesin > > -- > Fedora-xen mailing list > Fedora-xen@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-xen
Tan Chee Sin
2006-Nov-23 02:31 UTC
Re: [Fedora-xen] Cannot create files or dirs even as root on FC6 xen system
Hi Craig, Thanks for the info. Yes, autofs is indeed configured to dynamically mount the CDROM on /misc/cdrom. This is fresh install on a new system but it still have this style of config. Hmm... I have commented out the culprit line and restarted autofs. I''m able to write to /misc now. =) cheesin W Craig Trader wrote:> Cheesin ... > > Do you have the autofs daemon running, and does your /etc/auto.master > file reference mounting devices on /misc, using the definitions in > /etc/auto.misc? Once upon a time, RedHat Linux used autofs to > dynamically mount the CDROM on /misc/cdrom; if you''ve got an older > system that''s been upgraded, you might still have a remnant of that > style of configuration. If you run "ps aux | grep automount", it will > show you which mappings are active; if you see something like > "/usr/sbin/automount --timeout=60 /misc program /etc/auto.misc" you''ve > found the culprit. > > - Craig - > > Tan Chee Sin wrote: > >> Hi, >> >> I''ve installed a FC6 xen guest system and there is a /misc folder >> which I want to create files and directories. I get a permission >> denied when I try to do so even when I am root. >> >> # pwd >> /misc >> # mkdir test >> >> mkdir: cannot create directory `test'': Permission denied >> >> When I do a directoy listing on /, misc is 0 bytes. >> >> drwxr-xr-x 2 root root 0 Nov 21 13:24 misc >> >> I have listed the disk space usage and the fstab below. >> # df -k >> Filesystem 1K-blocks Used Available Use% Mounted on >> /dev/xvda1 11904588 1830176 9459928 17% / >> tmpfs 768000 0 768000 0% /dev/shm >> /dev/xvda3 5431008 171288 4979388 4% /var >> >> # cat /etc/fstab >> LABEL=/1 / ext3 >> defaults 1 1 >> devpts /dev/pts devpts >> gid=5,mode=620 0 0 >> tmpfs /dev/shm tmpfs >> defaults 0 0 >> proc /proc proc >> defaults 0 0 >> sysfs /sys sysfs >> defaults 0 0 >> LABEL=/var /var ext3 >> defaults 1 2 >> LABEL=SWAP-xvda2 swap swap >> defaults 0 0 >> >> I''m not sure if this issue happens only on FC6 xen but I am able to >> create files and directories on a FC5 xen system. >> >> cheesin >> >> -- >> Fedora-xen mailing list >> Fedora-xen@redhat.com >> https://www.redhat.com/mailman/listinfo/fedora-xen