LinuxQuestions.org
Visit Jeremy's Blog.
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 05-16-2011, 12:29 AM   #1
poweraha
LQ Newbie
 
Registered: May 2011
Posts: 3

Rep: Reputation: 0
Redhat 5.3 mount failed without root


Hi there,
In Redhat 4.x, we can use 'smbmount' to mount another linux samba server with 'user1'.
But now we used redhat 5.3(64bit), there is no smbmount and I can only user mount command via root.

How can I mount a folder via 'user1', not root?

(BTW, I can run '#mount hostname:/sharename /mnt/u1,
but the access right of /mnt/u1 is only for root.)
$ls -la
drwxrwxr-x root:root 4096 May 18 2010 u1

I wish it is "user1:user1"
drwxrwxr-x user1:user1 4096 May 18 2010 u1

I also edit /etc/fstab and add the following in.
hostname:/sharename /mnt/u1 noauto,user1 0 0

mount: only root can mount xxx on xxx.
It still doesn't work.

Pls help.


Thanks.

Phil

Last edited by poweraha; 05-16-2011 at 01:50 AM.
 
Old 05-16-2011, 04:58 PM   #2
Chirel
Member
 
Registered: Nov 2009
Posts: 55

Rep: Reputation: 19
Hi,

Setup and use sudo.

It's the only right way i can see, to do what you wanna do.
 
Old 05-16-2011, 06:26 PM   #3
poweraha
LQ Newbie
 
Registered: May 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Hi Chirel,

Thanks for your reply.

Even I can use sudo to mount, the ownership is root:root, not user1:user1.

Do you have any ideas on the ownership issue?

Thanks.

Phil
 
Old 05-18-2011, 08:00 AM   #4
Chirel
Member
 
Registered: Nov 2009
Posts: 55

Rep: Reputation: 19
You should have given sudo access to mount.cifs not mount
Then check man mount.cifs and take a look at the uid= and gid= optins to solve the issue.
 
1 members found this post helpful.
Old 05-26-2011, 11:38 PM   #5
poweraha
LQ Newbie
 
Registered: May 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Hi there,

I played with mount.cifs and uid,gid, failed without any luck.

My problem is my samba version is newer than the destination samba version.
Mounting from Redhat linux to Slackware linux.

To make it work, I use mounting via SSH.

Install fuse-2.6.5 & sshfs-fuse_2.2 into Redhat.
Now it works.

Regards,
Phil

Last edited by poweraha; 05-26-2011 at 11:40 PM.
 
Old 05-27-2011, 12:17 PM   #6
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,060

Rep: Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852
^ good idea. using samba to go from linux to linux is akin to translating from english to french back to english again.
 
  


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
Boot failed due to root fs mount fail- where is sys_mount implementation? eviatarkhen Linux - Kernel 1 11-13-2010 04:30 AM
fedora boot failed: can't mount root filesystem. liuchang2340 Linux - Hardware 2 01-13-2010 01:42 AM
Failed to mount root filesystem during boot pijon Linux - Hardware 3 08-31-2006 09:35 AM
Failed to mount the root directory via nfs banner Linux - Networking 2 04-01-2005 02:04 AM
Failed to mount the root directory via nfs banner Linux - Newbie 2 03-30-2005 01:57 PM


All times are GMT -5. The time now is 08:31 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