LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 01-12-2007, 07:47 AM   #1
Linux For Ever
Member
 
Registered: Jun 2006
Location: KSA
Distribution: Slackware 12.2
Posts: 49

Rep: Reputation: 15
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.
 
Old 01-12-2007, 09:25 AM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
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.
 
Old 01-12-2007, 11:14 AM   #3
Linux For Ever
Member
 
Registered: Jun 2006
Location: KSA
Distribution: Slackware 12.2
Posts: 49

Original Poster
Rep: Reputation: 15
i know that.
this command chmod -R 777 /media/repo/ change permission all sub directories.

but i can't create file or directory.

thanks.
 
Old 01-13-2007, 03:25 PM   #4
avijitp
Member
 
Registered: May 2005
Location: India
Distribution: FC11, Debian/Ubuntu, RHEL, Solaris, AIX, HP-UX
Posts: 161

Rep: Reputation: 32
what is the output of the "ls -l /media/repo", "lsattr /dedia/repo" and "df -kh /media/repo" ?
 
Old 01-14-2007, 07:02 AM   #5
Linux For Ever
Member
 
Registered: Jun 2006
Location: KSA
Distribution: Slackware 12.2
Posts: 49

Original Poster
Rep: Reputation: 15
[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 ).
 
Old 01-16-2007, 01:22 PM   #6
Linux For Ever
Member
 
Registered: Jun 2006
Location: KSA
Distribution: Slackware 12.2
Posts: 49

Original Poster
Rep: Reputation: 15
please help me.
 
Old 01-16-2007, 05:54 PM   #7
avijitp
Member
 
Registered: May 2005
Location: India
Distribution: FC11, Debian/Ubuntu, RHEL, Solaris, AIX, HP-UX
Posts: 161

Rep: Reputation: 32
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 ?
 
Old 01-19-2007, 02:34 PM   #8
Linux For Ever
Member
 
Registered: Jun 2006
Location: KSA
Distribution: Slackware 12.2
Posts: 49

Original Poster
Rep: Reputation: 15
thank u for your helping.

i don't found any error in hard drive.

I'm waiting .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
squirrelmail:How To create spam folder for all user? squirtle Linux - Software 1 10-30-2006 05:40 AM
Create script in CentOS4 to copy folder but promt user to enter name of destination mastermindpr Linux - General 2 02-08-2006 10:45 AM
Im the only user on SUSE 10.0 and it will not allow me in the root folder BFGeier Linux - Newbie 4 01-02-2006 07:09 AM
how can i default the max folder file size when it create inside a folder antony_csf Linux - Software 1 06-17-2004 02:26 AM
how to i create a folder under root? santasballz Linux - Newbie 3 02-27-2004 06:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 10:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration