The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to mount/umount disk from a non-root account brendan76 Linux 8 03-24-2008 08:51 AM
How to mount disk for non-root accounts? siegfried UNIX for Dummies Questions & Answers 4 08-28-2006 04:47 AM
unixware 7.1.3 can't mount root hushboy UNIX for Advanced & Expert Users 1 10-22-2005 08:46 AM
How do i access (mount, read & write) a floppy disk from the console, not being root? kfaday UNIX for Dummies Questions & Answers 4 05-13-2005 11:17 AM
Hw to create root-equivalent accounts? penguin-friend UNIX for Advanced & Expert Users 6 01-28-2002 05:40 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-12-2007
siegfried siegfried is offline
Registered User
  
 

Join Date: Oct 2005
Posts: 91
How to mount disk for non-root accounts?

I have a USB disk on a little NAS controller (NSLU2 running unslung 6.8) that I can access nicely with root with

mount -t cifs \\\\10.134.23.23\\DISK\ 2 /mnt/LKGD7F73A

However, when I run emacs from an user mode xterm prompt, emacs cannot read and write the files on /mnt/LKGD7F73A. Emacs can see the file but it says the file is not readable.

However, if I start emacs from a root console mode prompt, it can read and write the files.

I did a google search and read that I need to do a "umount /mnt/LKGD7F73A; chmod 777 /LKGD7F73A " and remount but this did not work.

How do I do this? Is there a procedure that will work for fd0 and other devices?

What can I put in fstab so /mnt/LKGD7F73A will automount?

In addition, what command can I use from the bash prompt (running as root) so other uses can access the mounted disk?

Thanks,
Siegfried
  #2 (permalink)  
Old 03-12-2007
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,206
Dos this work for you?
Code:
mount -t cifs -o uid=<non_root_uid> \\\\10.134.23.23\\DISK\ 2 /mnt/LKGD7F73A
where <non_root_uid> is the uid of your user?
  #3 (permalink)  
Old 03-12-2007
siegfried siegfried is offline
Registered User
  
 

Join Date: Oct 2005
Posts: 91
progress

Thanks! That is progress! How do I make it available for all non-root accounts?
Thanks,
Siegfried
  #4 (permalink)  
Old 03-12-2007
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,206
I'm not really sure. Try with gid instead of uid and give the group rw permissions. If necessary create an new group add all the users to that group.
  #5 (permalink)  
Old 03-17-2007
siegfried siegfried is offline
Registered User
  
 

Join Date: Oct 2005
Posts: 91
Still cannot read files on debian

I'm confused as I cannot detect the pattern yet. The solution of putting "-o uid=siegfried" did solve the problem on one distribution and I thought I had the problem solved. I think I was able to use it on ubuntu to burn a CD using nautilus.

But now I am on debian etch and I tried that trick again with

mount ... -o uid=siegfried,username=siegfried

and emacs comes back and says the file is not readable. So then I have to switch to my xterm running in root and copy the file from the samba share to a local copy where I can edit it in emacs.

So what else do I have to do so emacs can read and write files on the samba share? Root can do it but the siegfried account cannot. The siegfried account can see the file names and traverse the directories, however. That is progress!
Thanks,
Siegfried
  #6 (permalink)  
Old 03-17-2007
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,206
It should work the same way on etch. I don't know what the problem might be there, as a workaround, you could mount it up on the one that works and nfs share it from there to any other machines that need to use it, just make sure you keep the uid for siegfried consistent on all the machines.
  #7 (permalink)  
Old 03-17-2007
siegfried siegfried is offline
Registered User
  
 

Join Date: Oct 2005
Posts: 91
Trouble using NFS

I was having trouble using Samba and NFS and I finally solved (one of) my Samba problems by remembering to use smbpasswd. I wish the authors of the samba client setup would put a little push button and edit box that would remind you to run smbpasswd by clicking on the button. Oh well.

Is there an NFS counterpart to smbpasswd that I need to use? I enabled NFS shares via the nice GUIs (I love these new GUIs on all the distros, I just wish they would work) but I cannot see visit the shares from windows explorer or by using the unix mount command. I get connection refused.

Thanks,
Siegfried
Sponsored Links
Closed Thread

Bookmarks

Tags
linux, linux commands, ubuntu

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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




All times are GMT -4. The time now is 03:12 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0