How to mount disk for non-root accounts?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to mount disk for non-root accounts?
# 8  
Old 03-17-2007
I can't help with GUIs, I have never used any of them. For samba, I have used swat and would still recommend it as the best UI.

No passwords, and no windows support for NFS( you have to use samba for that). You need to make sure the nfs server is running and that you have exported to the required hosts. Authentication is by local user and/or remote machine identity, and hence why the uids need to be the same on every machine ( unless using a compatible network naming service )

I would set this up and tell you what I has to do, but I don't have any Linux boxes at the moment.
# 9  
Old 03-17-2007
cifs != nfs Are you sure that NFS is involved here? Try "mount.cifs -V" on both distros. According to the Debian website, sarge is still the latest stable release. Since you're having trouble with etch, maybe you should try sarge.

I don't use cifs and cannot test it, but I don't understand why you have cifs working at all. The man page says you need "user=someone password=something" or "credentials=filename" or a user/password combo in an environment variable. How are you providing the password?
# 10  
Old 03-17-2007
The NFS things came up when I suggested making a machine which is able to mount the CIFS into a nfs<->cifs gateway, and appears to have confused the situation even more.

Perderabo, in linux you can do something like this. I have always used smbfs, not cifs as the argument but it appears either will work.

Code:
mount -t smbfs -o username=reborg,password=pa$$w0rd,uid=reborg,gid=staff //host/share /mountpoint

or
Code:
mount -t smbfs -o username=reborg,uid=reborg,gid=staff //host/share /mountpoint

In the latter case the user will be prompted for the password.
# 11  
Old 03-17-2007
NFS does not work at all; Samba kinda works!

I have a fedora 6 (a virtual VMware guest node), ubuntu 6.10 (a PC), unslung 6.8 (a linksys NAS controller), debian etch (a virtual VMware guest node) and windows node (a host VMware node).

I have not tried making the unslung a NFS controller because it doe not have a nice GUI to do so.

Question #1A: How to access smb shares from root accounts? As the root account on fedora I say

mount -t cifs \\\\10.169.0.136\\siegfried /mnt/etch -o uid=siegfried,username=siegfried

This prompts me for a password. I can browse the directories but cannot read or write the files from root. Why not?

Question #1B: How to access smb shares from non-root accounts? As the root account on any linux node on my network I can

mount -t cifs \\\\10.169.1.10\\DISK\ 2 /mnt/LKGD7F73A -o uid=siegfried

10.169.1.10 is a linksys NAS controller running a linux distro called unslung.

I can read and write files from the root account only. I can only browse directories from the siegfried account. I need to be able to read and write files from the siegfried account.


Question #2: Why can no one see the samba and nfs shares on fedora node? I have restarted the SMB and NFS servers using the GUI. I have run smbpasswd. I have stopped the firewalls (which is transparent anyway). When I run places->network servers I see ubuntu, windows, unslung and etch but no fedora. Why not?

Question #3: When I am on debian-etch, I can use places->network servers and, with no password, read and write files on ubuntu by double clicking on the files, bringing up open office, modifying the file and writing a new file. Why don't I need a password? Why does this mount command fail:

mount -t cifs \\\\10.169.0.128\\judy_smb /mnt/fasolt_judy -o username=judy,uid=siegfried
Password:
mount error 13 = Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)


Question #4: Why does not NFS ever work from anything? I have created NFS shares, restarted nfs servers. They don't show up in places->network servers. Commands like the following don't work:

mount -t nfs \\\\10.169.0.128\\siegfried_nfs /mnt/fasolt -o username=siegfried,uid=siegfried
mount: directory to mount not in host:dir format

I have used the GIU to create a NFS share called siegfried_nfs. I don't think a fire wall is the problem here because I can get thru with samba using places->network servers.

So what do I need to do to make NFS work?

I think that is enough questions for now.

Thanks everyone for your support!
Siegfried
# 12  
Old 03-17-2007
Quote:
Originally Posted by siegfried
Question #2: Why can no one see the samba and nfs shares on fedora node? I have restarted the SMB and NFS servers using the GUI. I have run smbpasswd. I have stopped the firewalls (which is transparent anyway). When I run places->network servers I see ubuntu, windows, unslung and etch but no fedora. Why not?
I just made a little progress. From debian etch I can now see the samba shares using smbclient. This is a result of editing /etc/samba/smb.conf and setting 'public=yes' on the fedora node. Now the fedora node shows up in the windows explorer and the smbclient command but not the places->network servers from debian-etch. Why not?

How do I change the domain from mygroup to workgroup?

Thanks,
siegfried

ETCHRC4:/dev# smbclient -L 10.169.0.127 -N
Anonymous login successful
Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.0.24-1.fc6]

Sharename Type Comment
--------- ---- -------
siegfried_smb Printer siegfried's files
IPC$ IPC IPC Service (Samba Server)
Anonymous login successful
Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.0.24-1.fc6]

Server Comment
--------- -------
LOCALHOST Samba Server

Workgroup Master
--------- -------
MYGROUP
ETCHRC4:/dev# mount -t cifs \\\\10.169.0.127\\siegfried_smb /mnt/fedora -o uid=siegfried,username=siegfried
Password:
retrying with upper case share name
mount error 6 = No such device or address
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
ETCHRC4:/dev#
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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. 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

7. 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

8. 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

9. 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
Login or Register to Ask a Question