Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to mount disk for non-root accounts? Post 302110969 by siegfried on Saturday 17th of March 2007 01:58:49 AM
Old 03-17-2007
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
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Hw to create root-equivalent accounts?

Hi all. After installing ssh on a server, i'd like to create a user with root privileges. My problem is that after creating a user rootssh (uid=0, gid=20, /home/rootshh), i make rootssh's ssh keys. The problem is that normally the ssh-keygen should create the keys under $HOME/.ssh/, and actually... (6 Replies)
Discussion started by: penguin-friend
6 Replies

2. UNIX for Dummies Questions & Answers

How do i access (mount, read & write) a floppy disk from the console, not being root?

welll, the title quite explains what i want to do thanks for your time! (4 Replies)
Discussion started by: kfaday
4 Replies

3. UNIX for Advanced & Expert Users

unixware 7.1.3 can't mount root

please help me about unixware 7.1.3 -------------------------------------------------------------------------------- msg: vfs_mountroot:cannot mount root %%%%%% system don't start (1 Reply)
Discussion started by: hushboy
1 Replies

4. UNIX for Dummies Questions & Answers

How to mount disk for non-root accounts?

Presently I have mounted a disk as su. I believe only root can mount disks -- is this correct? I had to run mozilla in the root account so I can download the new SuSE distribution to the new disk. How can I mount the disk so non-root accounts can access the disk? Thanks, Siegfried (4 Replies)
Discussion started by: siegfried
4 Replies

5. Linux

How to mount/umount disk from a non-root account

Is it possible to mount a disk from a non-root account? I'm developing a Java application which executes commands in the shell using the java.lang.Runtime.exec api, which runs fine for commands ls, df, etc., but for commands mount and umount, i have problems as I need to be root to eecute these.... (8 Replies)
Discussion started by: brendan76
8 Replies

6. Shell Programming and Scripting

if (disk is mounted) unmount if (disk is unmounted) mount

Hey there, sorry if this is a bit too much of a noob question, trying to get to grips with a simple bash script - but i have done ZERO bash scripting. basically having worked out how to mount and unmount disks using: disktool -m *device* & disktool -e *device* - and looking at the result of... (2 Replies)
Discussion started by: hollister
2 Replies

7. Shell Programming and Scripting

I have a requirement to check whose accounts are expired in Linux machine and send a mail to root

I have a requirement to check whose accounts are expired in Linux machine and send a mail to root user about the accounts. How can i achieve this in Linux? (1 Reply)
Discussion started by: mnmonu
1 Replies

8. Solaris

Lost Root Password on VXVM Encapsulated Root Disk

Hi All Hope it's okay to post on this sub-forum, couldn't find a better place I've got a 480R running solaris 8 with veritas volume manager managing all filesystems, including an encapsulated root disk (I believe the root disk is encapsulated as one of the root mirror disks has an entry under... (1 Reply)
Discussion started by: sunnyd76
1 Replies

9. Red Hat

How to check local accounts have root and user access rights ?

Hi, I have three servers,For 3 servers how i can take output,all the local accounts and details of whether the access is Root or User access. cheers (1 Reply)
Discussion started by: ranjithm
1 Replies
SMBMNT(8)																 SMBMNT(8)

NAME
smbmnt - helper utility for mounting SMB filesystems SYNOPSIS
smbmnt mount-point [ -s <share> ] [ -r ] [ -u <uid> ] [ -g <gid> ] [ -f <mask> ] [ -d <mask> ] [ -o <options> ] DESCRIPTION
smbmnt is a helper application used by the smbmount program to do the actual mounting of SMB shares. smbmnt can be installed setuid root if you want normal users to be able to mount their SMB shares. A setuid smbmnt will only allow mounts on directories owned by the user, and that the user has write permission on. The smbmnt program is normally invoked by smbmount(8) It should not be invoked directly by users. smbmount searches the normal PATH for smbmnt. You must ensure that the smbmnt version in your path matches the smbmount used. OPTIONS
-r mount the filesystem read-only -u uid specify the uid that the files will be owned by -g gid specify the gid that the files will be owned by -f mask specify the octal file mask applied -d mask specify the octal directory mask applied -o options list of options that are passed as-is to smbfs, if this command is run on a 2.4 or higher Linux kernel. AUTHOR
Volker Lendecke, Andrew Tridgell, Michael H. Warfield and others. The current maintainer of smbfs and the userspace tools smbmount, smbumount, and smbmnt is Urban Widmark <URL:mailto:urban@teststa- tion.com>. The SAMBA Mailing list <URL:mailto:samba@samba.org> is the preferred place to ask questions regarding these programs. The conversion of this manpage for Samba 2.2 was performed by Gerald Carter 19 November 2002 SMBMNT(8)
All times are GMT -4. The time now is 01:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy