LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
LinkBack Search this Thread
Old 04-04-2012, 06:13 AM   #1
mad_penguin
Member
 
Registered: Mar 2008
Posts: 69

Rep: Reputation: 15
permission denied as root, trying to mount WTF!


Hi Guys,

Basically I've tried this as root(!):

mount --bind /var/www/dir_1 /home/user/public_html/dir_1

I get permission denied! WTF!!

Both directories have the same owner and proper permissions.

vs2817:/home/tiberiu/public_html# ls -la /home/tiberiu/public_html/website.tld/
total 8
drwxr-xr-x 2 tiberiu www-data 4096 2012-04-04 13:00 .
drwxr-xr-x 3 tiberiu sftponly 4096 2012-04-04 13:00 ..
vs2817:/home/tiberiu/public_html# ls -la /var/www/kleral-romania.ro/
total 216
drwxr-xr-x 5 tiberiu www-data 4096 2012-04-02 17:29 .
drwxr-xr-x 4 root root 4096 2012-03-29 10:04 ..
-rw-rw-r-- 1 tiberiu www-data 397 2008-05-25 22:33 index.php
-rw-rw-r-- 1 tiberiu www-data 16899 2011-06-08 20:18 license.txt
-rw-rw-r-- 1 tiberiu www-data 9202 2012-01-03 18:01 readme.html
-rw-rw-r-- 1 tiberiu www-data 4268 2011-10-20 16:40 wp-activate.php
drwxrwxr-x 9 tiberiu www-data 4096 2012-01-03 21:53 wp-admin
-rw-rw-r-- 1 tiberiu www-data 40272 2011-10-28 17:48 wp-app.php
-rw-rw-r-- 1 tiberiu www-data 274 2010-11-20 22:44 wp-blog-header.php
-rw-rw-r-- 1 tiberiu www-data 3982 2011-09-30 19:18 wp-comments-post.php
-rw-rw-r-- 1 tiberiu www-data 3165 2012-04-02 17:29 wp-config.php
-rw-rw-r-- 1 tiberiu www-data 3177 2010-11-01 15:45 wp-config-sample.php
drwxrwxr-x 4 tiberiu www-data 4096 2012-01-03 21:53 wp-content
-rw-rw-r-- 1 tiberiu www-data 2684 2011-09-09 21:59 wp-cron.php
drwxrwxr-x 8 tiberiu www-data 4096 2012-01-03 21:53 wp-includes
-rw-rw-r-- 1 tiberiu www-data 1997 2010-10-23 14:17 wp-links-opml.php
-rw-rw-r-- 1 tiberiu www-data 2546 2011-11-15 16:47 wp-load.php
-rw-rw-r-- 1 tiberiu www-data 27695 2011-11-23 08:03 wp-login.php
-rw-rw-r-- 1 tiberiu www-data 7777 2011-08-05 18:57 wp-mail.php
-rw-rw-r-- 1 tiberiu www-data 413 2011-09-19 06:17 wp-pass.php
-rw-rw-r-- 1 tiberiu www-data 334 2010-12-09 19:02 wp-register.php
-rw-rw-r-- 1 tiberiu www-data 9913 2011-10-18 21:37 wp-settings.php
-rw-rw-r-- 1 tiberiu www-data 18545 2011-11-15 21:44 wp-signup.php
-rw-rw-r-- 1 tiberiu www-data 3702 2010-02-24 21:13 wp-trackback.php
-rw-rw-r-- 1 tiberiu www-data 3266 2011-04-17 10:35 xmlrpc.php
 
Old 04-04-2012, 07:22 AM   #2
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,188
Blog Entries: 4

Rep: Reputation: 219Reputation: 219Reputation: 219
what is it that you are trying to mount?

and please use code tags while showing commands or their outputs so that it is easier for us to understand
 
Old 04-04-2012, 07:31 AM   #3
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Is one or the other directory actually on an nfs share?

Check the kernel messages at the time you tried the --bind mount.
 
Old 04-05-2012, 08:40 AM   #4
mad_penguin
Member
 
Registered: Mar 2008
Posts: 69

Original Poster
Rep: Reputation: 15
Hi guys

=-[pThe problem I am facin\
 
  


Reply

Tags
chroot, mount


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mount -t cifs permission denied by mount -t smbfs works fine humbletech99 Linux - Server 13 09-03-2009 10:17 AM
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 11:34 AM
Permission denied error when trying to mount image contained in sshfs mount openSauce Linux - General 2 03-08-2009 08:50 AM
Permission denied in mount /media/cdrecorder from non-root account... sean04 Linux - Newbie 2 12-10-2007 12:57 PM
mount: permission denied (in root) kyrian Mandriva 1 02-29-2004 01:53 PM


All times are GMT -5. The time now is 08:42 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration