Red Hat This forum is for the discussion of Red Hat Linux. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
01-12-2007, 07:47 AM
|
#1
|
Member
Registered: Jun 2006
Location: KSA
Distribution: Slackware 12.2
Posts: 49
Rep:
|
i can't create folder or file by root user.
hi all.
OS info:
RHEL 4 update 3
hard desk SATA 250GB W/D.
/dev/sda6 mounted on /media/repo
i can create or move, folder or file under repo directory, but i can't do that with any sub directory under /media/repo.
i change permission to 777 but i can't create any thing.
look at this
[root@personal ~]# whoami
root
[root@personal ~]# mkdir /media/repo/movie/test
mkdir: cannot create directory `/media/repo/movie/test': Permission denied
[root@personal ~]# mkdir /media/repo/test
[root@personal ~]#
can u help me.
|
|
|
01-12-2007, 09:25 AM
|
#2
|
Senior Member
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191
Rep:
|
change the permission to the /media/repo/movie dir to 777. that must be your problem since you can create a file in /media/repo and not in the movie dir.
|
|
|
01-12-2007, 11:14 AM
|
#3
|
Member
Registered: Jun 2006
Location: KSA
Distribution: Slackware 12.2
Posts: 49
Original Poster
Rep:
|
i know that.
this command chmod -R 777 /media/repo/ change permission all sub directories.
but i can't create file or directory.
thanks.
|
|
|
01-13-2007, 03:25 PM
|
#4
|
Member
Registered: May 2005
Location: India
Distribution: FC11, Debian/Ubuntu, RHEL, Solaris, AIX, HP-UX
Posts: 161
Rep:
|
what is the output of the "ls -l /media/repo", "lsattr /dedia/repo" and "df -kh /media/repo" ?
|
|
|
01-14-2007, 07:02 AM
|
#5
|
Member
Registered: Jun 2006
Location: KSA
Distribution: Slackware 12.2
Posts: 49
Original Poster
Rep:
|
[root@personal ~]# ls -l /media/repo/
total 18608
drwxr-xr-x 2 l4e l4e 4096 Dec 25 05:23 blender
drwxrwxrwx 4 l4e l4e 4096 Nov 17 02:42 book
-rwxrwxrwx 1 l4e l4e 238702 Jan 12 09:38 bookmarks.html
drwxrwxrwx 2 l4e l4e 4096 Jan 11 16:16 coyote-3.00.47
drwxrwxrwx 3 l4e l4e 4096 Jan 6 14:25 family
-rw-rw-r-- 1 l4e l4e 16012914 Jan 12 08:13 firefox-1.5.0.9-0.1.el4.centos4.i386.rpm
drwxrwxrwx 2 l4e l4e 4096 Dec 1 12:57 flash
-rw-rw-r-- 1 l4e l4e 137655 Jan 12 21:18 full_linuxVillage.jpg
drwxrwxrwx 5 l4e l4e 4096 Dec 22 09:55 install
drwxrwxrwx 11 l4e l4e 4096 Jan 7 15:52 iso
drwxrwxrwx 2 l4e l4e 4096 Dec 12 06:25 learn-english
drwxrwxrwx 2 l4e l4e 4096 Dec 16 09:57 LinuxCBT Security
drwxrwxrwx 2 l4e l4e 4096 Dec 24 21:41 lost+found
drwxrwxrwx 5 l4e l4e 4096 Jan 14 15:44 movie
drwxrwxrwx 5 l4e l4e 4096 Dec 25 11:48 music
drwxrwxrwx 11 l4e l4e 4096 Jan 10 14:59 package
drwxrwxrwx 8 l4e l4e 4096 Dec 16 01:34 pictures
-rw-rw-r-- 1 l4e l4e 508382 Dec 22 11:06 privoxy-3.0.3-5.i386.rpm
-rw-rw-r-- 1 l4e l4e 1600730 Dec 23 08:43 rhd-20050210.swf
drwxrwxrwx 16 l4e l4e 4096 Jan 12 09:39 suse-doc
drwxrwxrwx 2 l4e l4e 4096 Jan 12 16:41 test
drwxrwxrwx 9 l4e l4e 4096 Sep 23 00:41 Thems
-rw-rw-r-- 1 l4e l4e 339567 Dec 22 11:05 tor-0.1.1.25-1.el4.rf.i386.rpm
drwxrwxrwx 2 l4e l4e 4096 Dec 23 12:42 Windows Driver
drwxrwxr-x 2 l4e l4e 4096 Jan 12 21:09 z.t
[root@personal ~]#
========================================
[root@personal ~]# lsattr /media/repo/
------------- /media/repo//suse-doc
------------- /media/repo//book
------------- /media/repo//movie
------------- /media/repo//iso
------------- /media/repo//coyote-3.00.47
------------- /media/repo//Thems
------------- /media/repo//pictures
------------- /media/repo//bookmarks.html
------------- /media/repo//test
------------- /media/repo//music
------------- /media/repo//install
------------- /media/repo//rhd-20050210.swf
------------- /media/repo//LinuxCBT Security
------------- /media/repo//package
------------- /media/repo//z.t
------------- /media/repo//learn-english
------------- /media/repo//tor-0.1.1.25-1.el4.rf.i386.rpm
------------- /media/repo//blender
------------- /media/repo//flash
------------- /media/repo//privoxy-3.0.3-5.i386.rpm
------------- /media/repo//firefox-1.5.0.9-0.1.el4.centos4.i386.rpm
------------- /media/repo//family
------------- /media/repo//full_linuxVillage.jpg
------------- /media/repo//Windows Driver
------------- /media/repo//lost+found
[root@personal ~]#
========================================
[root@personal ~]# df -kh /media/repo
Filesystem Size Used Avail Use% Mounted on
/dev/sda6 201G 71G 121G 37% /media/repo
[root@personal ~]#
===============
No problem with another distro e.g ( SuSE 10.2 - SLES - FC6 - ubuntu 6.10 ).
|
|
|
01-16-2007, 01:22 PM
|
#6
|
Member
Registered: Jun 2006
Location: KSA
Distribution: Slackware 12.2
Posts: 49
Original Poster
Rep:
|
please help me.
|
|
|
01-16-2007, 05:54 PM
|
#7
|
Member
Registered: May 2005
Location: India
Distribution: FC11, Debian/Ubuntu, RHEL, Solaris, AIX, HP-UX
Posts: 161
Rep:
|
Everything looks fine to me. Can you reboot the system in the Single user mode and run fsck on the /dev/sda6 once to check if there is any erro on the drive ?
|
|
|
01-19-2007, 02:34 PM
|
#8
|
Member
Registered: Jun 2006
Location: KSA
Distribution: Slackware 12.2
Posts: 49
Original Poster
Rep:
|
thank u for your helping.
i don't found any error in hard drive.
I'm waiting .
|
|
|
All times are GMT -5. The time now is 10:19 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|