LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 04-16-2012, 12:52 PM   #1
vedaprasad
LQ Newbie
 
Registered: Jan 2010
Posts: 20

Rep: Reputation: 0
Not able to create folder in home dir as root user


Hi all.

I am using RHEL 5 , for some reason i am not able to create folder under home dir as root user . i did a remount for /home but no luck .

Some info -

[root@guest2 home]# mkdir vedu
mkdir : cannot create directory `vedu': Permission denied

-----------------------------------------------------------
df -h /home/
Filesystem Size Used Avail Use% Mounted on
- 0 0 0 - /home
------------------------------------------------------------
ls -l /
total 144
drwxr-xr-x 2 root root 4096 May 5 2011 bin
drwxr-xr-x 3 root root 4096 May 4 2011 boot
drwxr-xr-x 11 root root 4120 Mar 27 20:41 dev
drwxrwxrwx 91 root root 12288 Mar 27 23:24 etc
drwxrwxrwx 2 root root 0 Sep 18 2011 home
drwxr-xr-x 14 root root 4096 May 5 2011 lib
drwx------ 2 root root 16384 May 4 2011 lost+found
drwxr-xr-x 2 root root 4096 May 4 2011 media
drwxr-xr-x 2 root root 0 Mar 27 20:41 misc
drwxr-xr-x 2 root root 4096 Oct 5 01:09 mnt
drwxr-xr-x 2 root root 4096 Jul 5 2011 mpoint
drwxr-xr-x 2 root root 0 Mar 27 20:41 net
--------------------------------------------------------------
Thanks in advance.
ved
 
Old 04-16-2012, 01:20 PM   #2
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,825

Rep: Reputation: 221Reputation: 221Reputation: 221
Try
Code:
#mkdir /home/<username>/vedu
 
Old 04-16-2012, 01:27 PM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Please post the output from
Code:
mount
Kind regards
 
Old 04-16-2012, 01:57 PM   #4
klinzter
LQ Newbie
 
Registered: Nov 2005
Posts: 8

Rep: Reputation: 0
Hi all,
Do you have checked the mount? its sounds like you mounted in the read only mode.
 
Old 04-17-2012, 05:02 AM   #5
vedaprasad
LQ Newbie
 
Registered: Jan 2010
Posts: 20

Original Poster
Rep: Reputation: 0
Hi all

Thanks to every one for the quick reply .I was able to fix the issue . for some reason i tried an fuser on home dir and killed the process that was using the dir.

[root@guest2 ~]# fuser -mv /home
USER PID ACCESS COMMAND
/home: root 2919 f.... automount

[root@guest2 ~]# kill -9 2919

After this i was able to create the folders.

Thanks,
ved
 
Old 04-17-2012, 05:34 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Please mark the thread solved.

Kind regards
 
  


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
[SOLVED] Force PAM to create user home folder if it already not exists Lorens Linux - Security 12 11-29-2011 05:12 AM
Share access to single folder in user home dir? duffme Linux - Security 1 11-14-2011 12:29 AM
i can't create folder or file by root user. Linux For Ever Red Hat 7 01-19-2007 03:34 PM
user home dir doesn't create when new user add dev_mohamed Linux - Software 3 01-12-2007 02:08 AM
HELP! When I create a new user a home dir isn't created lynchpin9 Linux - General 5 01-18-2005 12:05 PM


All times are GMT -5. The time now is 03:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration