Networking :: User NFS Mounts - "mount - Only Root Can Do That"
Jun 25, 2010
I am working from RHCE Study Guide 5th Edition by Michael Jang. Lab 1 for Chapter 6 says that I should be able to mount a remote NFS share as an ordinary user under their home directory.
However, mount requires root unless it's defined in /etc/fstab with the appropriate options. So would the following never work for a user?
Code:
I could define it in /etc/fstab, but then I would have to specify a "general" mount point for the mount, like /mnt/nfs and not specific to a user like the lab suggests above.
Is the book wrong on this? Even the answer for the lab makes no mention of using fstab to mount as non-root user and the above command is correct according to the solution.
View 2 Replies
ADVERTISEMENT
Dec 11, 2010
I have a directory, /root/backup, that I mount and run a bunch of rysnc scripts against to backup my box. I'm running into a very recent problem where when I run this command:
A directory that once looked like this:
Goes to this:
It changes from root to www (another user on my system) and I have no idea why.
When I look at the /mount/procs file, I see this:
So it looks like the uid is correct...
I believe this is what is causing my rsync scripts to fail (they only copy over directories and not the files in those directorys and I get a lot of permissions failed errors)
All of this is run as root in cron jobs
As a note, here is a sample rsync command:
View 4 Replies
View Related
Nov 24, 2010
I have multiple ubuntu machines and I connect to one through an NFS share. I have done this for a few years without issue. However, since re-installing ubuntu and upgrading to 10.4 I have a problem with my system hanging when the remote shares are lost.
Basically, I can power down the machine downstairs, and my main machine then has a fit. I can not open any folders in ubuntu, nor can I shut down. If I try and shut down the system hangs, last time it hung for 8 hours before I had to kill the power.
These are the lines in my fstab
I don't know what I've done wrong, or how I can prevent this from hanging. I have googled the heck out of this as well and can't seem to find an answer either.
View 2 Replies
View Related
Jun 5, 2010
What if I want to install Slackware for my parents so then I no longer have to get rid of virus and malware for them. Is there way so they never have to log on as root? Any way to access CD's and to shutdown computer? I only know how to do those things as root.
View 7 Replies
View Related
Oct 6, 2010
I am using fedora 12.I have two internal drives. Both are ntfs. Whenever i click on them it prompts to enter root password. But i want to mount them as normal user without entering any root password. How can i disable it so that i am not asked to enter root password everytime i mount the drives.
View 2 Replies
View Related
Feb 11, 2010
Although I can perfectly mount any usb device (stick or disc) as being root, as a user I am not allowed to perform any such action! I have modified the corresponding fstab entry to look like:
Code: usbfs /proc/bus/usb usbfs noauto,user 0 0 and I have also made sure that the user is a member of the disk group, but without any luck. My system is OpenSuSE 11.2 (with KDE 4.4, but the problem is the same regardless I am attempting to mount the usb device via the GUI or through the text (c/k)onsole).
View 9 Replies
View Related
Aug 31, 2010
I had to change the mounting properties of my disk partitions so i tinkered with the fstab file.. Now I am unable to mount the cdrom as a normal user..To mount the cdrom I had to login as root in terminal and use the following command:
Code:
mount /mnt/cdrom
The cdrom entry in my fstab file reads:
[code]...
View 2 Replies
View Related
May 1, 2010
I have Kubuntu 10.04 Lucid installed on my new laptop and I'm trying to get my backup script up and running again. I had a script that would connect using smbmount with my normal user account and then mirror my home folder to the external network attached hard drive with rsync. It seems that rsync needs to be run as user account, not root, to work properly.Some of the setup info for getting this running in Kubuntu Karmic was from this article:
However, smbmnt does not exist in *buntu 10.04. Is there any other way to connect NAS drives as non-root user that is relatively secure? I spent all day yesterday struggling with this and still haven't found a solution.
View 2 Replies
View Related
Mar 23, 2009
My wife's XP has crashed and I need to save files. I've discovered the command to mount the hard drive - unfortunately I need to force the mount, but I can't do it because I have to be in root. I can see the root user in the user list, but when I try to switch I can't access it. How I can do it to back up my wife's files. I have Kubuntu 8 and KDE 4.1.
View 2 Replies
View Related
Sep 22, 2010
I have created a 2nd user account on my system and when that user accesses the external hard drive it's permissions are root.
@one ~]$ ls /media -l
total 13 dr-xr-xr-x 1 root root 8192 Sep 19 11:49 External Drive 1TB
View 4 Replies
View Related
Oct 28, 2009
Is It possible to change a process running in root-user to non-root-user by setting suid / uid / euid / gid etc... I so please instruct how, when and wat to set in order to change a process running in root-user to non-root user
View 4 Replies
View Related
Dec 13, 2009
I've updated my openSUSE 11.1 to 11.2 using installation DVD. After that, as system boots, I started to get lines like:
Code: FATAL: Module jbd not found
FATAL: Module mbcache not found
FATAL: Module ext3 not found and so on with different modules.. and this exact string several times:
Code: WARNING: All config file need .conf: /etc/modprobe.d/tv, it will be ignored in a future release. Finally I get:
[Code]....
View 4 Replies
View Related
Jul 20, 2010
I have a flash drive that I use to sync my work- and home-computers. Rsync has occasional issues syncing between FAT32 (which I use on my flash drive b/c it's universal) and EXT3.
I decided to create an EXT3 partition on the flash drive in an attempt to alleviate the rsync woes. My problem is that when I create the partition using GParted, Ubuntu auto-mounts it with Root as the owner. I had GParted check the drive, and it found no errors to repair.
One other weird thing is that the EXT3 partition shows 84.7MB being used immediately after creating the new partition.
The FAT32 partition mounts fine, is read/write, and only shows 4KB used after the new partition scheme.
I tried doing new partitions a number of times, with EXT2, EXT3, and EXT4 just to see if that mysteriously made a difference. Each time that partition would mount w/ Root as owner.
View 6 Replies
View Related
May 23, 2011
I just discovered that you can automount an ext4 filesystem with acl enabled by running "tune2fs -o acl". (I knew about tune2fs but did not dare to use it until now). However, the acl mount option does not show up in /etc/mtab and /proc/mounts. Can I ignore this, or is there a way of telling the system about the actual mount options?
Edit: I can do "tune2fs -l <device> | grep acl | awk '{print $4}'" and if that isn't empty I can update /etc/mtab with "mount -f -o remount,acl <device>", but like the udev rule I previously messed with this seems lumberingly unelegant to me.
View 2 Replies
View Related
Feb 23, 2010
Whenever I plug in my PSPgo via USB, it shows up in Nautilus as:
Code:
The first line is the system's onboard memory, and the second line is my 16 gig memory card. It used to mount as:
Code:
I *cannot* unmount the drive. The computer does not seem to be able to find the mount point to take it off from. When I unmount from Nautilus, it says:
Code:
Error unmounting:
If I just unplug the drive, the entry in /media remains as 1C[glitchy box thing][series of underscores] (see screenshot)
I tried looking at the drive in gparted, and it says:
Code:
Code:
Is my PSPgo becoming corrupt or something? That would be supremely unpleasant. I'd definitely like to avoid that, if at all possible.
View 7 Replies
View Related
Feb 18, 2010
I'm trying to talk the studio I work at into switching one of the departments to linux. (likely kubuntu). So I'm trialling it, but having issues mounting windows shares.It's working great; all except that only Root can write to the mount. I've tried a few different things with fstab, no go.Below is my fstab so far, and you can see the mountpoints.
Code:
# /etc/fstab: static file system information.
#
[code]....
View 2 Replies
View Related
Aug 7, 2009
I need to create an SSH user that can only access the directory I would specify for them. For example, I've been able to execute the following:
useradd -d /home/me/directory_for_this_user someuser
So when someuser logs in they get into this directory. Problem is that once they log in they can simply execute:
cd /
and navigate through all other directories which is a security risk.
How I could limit someuser's access to only /home/me/directory_for_this_user and its subdirectories and nowhere else in the system?
View 1 Replies
View Related
Jun 24, 2010
We have installed apache 2.2.15 webserver on A rhel 5 Linux 64 box using the user wwwadm group www
We can start the webserver using root and it works fine but we dont have root access forever so we want the wwwadm user to have all the rights and we can start/stop/restart the Apache server using this wwwadm user.
View 1 Replies
View Related
Oct 4, 2010
this subject seems to have been touched a hundred times, but after following all the advice google could provide, i'm still unable to mount cifs shares as user, here's the fstab line
<server> <mountpoint> cifs rw,noauto,credentials=/etc/gattonauth,uid=1000,gid=1000,dir_mode=0770 0 0
i've chowned the mountpoint to the user,
ive tried
chmod +s /sbin/mount.cifs /sbin/mount.cifs
suggested by http://www.linuxquestions.org/questi...-lenny-711337/
View 9 Replies
View Related
Sep 19, 2010
I've a redhat server and a windows 2003 server. The windows box has a shared directory on it that I want to mount on the linux box. This I can do no problem using the following command:
mount -t cifs -o username=windowsuid,password=mypass //winservername/directory /mnt/directory
This all works perfectly however I need to mount this as a non root user. This is where I'm having difficult. I constantly run into "only root can do that". I've edited the fstab and added the entry in there for the mount with the flag user or users and neither makes a difference. I've also tried editing the sudoers file and still the same.
View 4 Replies
View Related
Jun 25, 2009
I'm running a server with CentOS 5 where the software that needs to run on the server uses ifconfig to verify the system IPv4.The problem is that /sbin isn't set for the user that is supposed to run the software (sadmin) which means the software can't execute ifconfig and thus terminates.now the workaround I've been using is simply to input.
View 10 Replies
View Related
Mar 14, 2010
I have an ntfs external hd; I can mount and use it fine, without entry in fstab, but not share stuff. That is to say: I can use nautilus / thunar to share folders on it without errors, but they are not accessible via the network. The issue may be that the mount point has permissions 700. I can solve that by Code:sudo mount -t ntfs-3g /dev/sdb1 /media/Databank -o umask=0,nls=utf8or by setting umask=022 in fstab, but then I can't mount it as user anymore; if I set fstab to
Code:
/dev/sdb1 /media/Databank ntfs-3g user,umask=022,nls=utf8,defaults 0 0
I get this when I try to mount it as user in the filebrowser:
[code]....
View 1 Replies
View Related
Jan 26, 2010
I need to mount a partition that is on a server (via samba).
I am doing the following in my fstab
Quote:
//server/www /media/www cifs rw,user,allow_other,default_permissions,credential s=/root/.smbcredentials,iocharset=utf8,dir_mode=0777,file_ mode=0777 0 0
I can mount it but it just allows me to access with the root user. How can I do it to get access with any user?
Additional Data: I added "rw,user,allow_other,default_permissions" because I thought that would solve de problem but it didn't.
View 1 Replies
View Related
Sep 29, 2010
i need to always mount the user share of my Windows server at Ubuntu login.
This is my server struture:
Server
|-Group1
| |-user1
|
|-Group2
|-user2
ive found that i need to configure pam mount and i have this example:
<volume user="user" fstype="smbfs" server="krueger" path="public"
mountpoint="/home/user/krueger" >
but i dont know what to change relative to my server folder struture.
View 9 Replies
View Related
May 26, 2011
Figured out a straight shot at connecting to the Internet in Fedora 15. Follow these commands.
1.)****** SWITCH TO ROOT USER if you don't have privileges*******
2.) cd /etc/sysconfig/network-scripts
3.) rm ifcfg-XXXXX (DO NOT REMOVE THE IFCFG-LO)
4.) system-config-network
-> Once in this screen, press the enter key on "Device configuration"
-> Configure your network statically. ( I did the following.) Name: leave as default Device: Leave as default DESELECT "Use DHCP" Set Static IP as 192.168.2.117 (or 192.168.1.117) Set NetMask as 255.255.255.0 Set "Default Gateway IP" AND "Primary DNS Server" to 192.168.2.1 (or 192.168.1.1)
[Code]..
View 4 Replies
View Related
Jan 18, 2010
I'm setting up Ubuntu Karmic on my sister's old computer for my nephew, he's quite young so my sister asked to install some content filtering. I'll first setup an OpenDNS account and I've installed and managed to get dansguardian and squid working on a virtual machine to try it out. so far it's working pretty well, but I need to secure it form the inside out.
I was thinking of blocking specific outbound ports so he could not bypass the proxy. because by default the firefox configuration can be easily changed. so I have a couple of questions.
1. is it possible to block outgoing ports on Ubuntu?
2. is that the best method?
3. is there anything else I should be aware of to prevent subversion?
lastly, this question is probably unrelated to this board but I've set up a cron job to update a dynamic ip with OpenDNS, the problem is that the password is in clear text in the user's crontab, can I play with permissions? is it possible to run the job under a root account and deny read/write access to a normal user?
View 1 Replies
View Related
Nov 20, 2010
I am using Ubuntu 10.04, with the Enlightenment WM, with nautilus for my file manager and I have installed the halevt package to handle the mounting of my external media. My issue now is that when I mount the media as a normal user it is being mounted as read only - any ideas how I can have halevt mount the media so I can write to it as my normal user in addition to reading from it?
View 3 Replies
View Related
Apr 27, 2011
I used the ntfs-config utility to mount my windows drives automatically at startup. While doing so, I had my USB-HDD still attached, and after making changes and rebooting, it did something unknown I didn't expect and I cannot mount my USB-HDD again, and it gives me the following error message:
Error mounting: mount exited with exit code 1: helper failed with:
mount: only root can mount /dev/sdb1 on /media/MyUSBDrive
I did manage to open it somehow, but then all the data was erased apart from ~3 GiB [edit: it's got some kind of extra drive built-in which is mounted as a CD-ROM drive, and when I open that one first all the files are missing in the actual drive, otherwise I get the message above]. I don't know what information I should include here, but my fstab looks like this:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
[code]....
This line in terminal:
sudo mount -t ntfs-3g /dev/sdb1 /media/sdb1
Gives:
fuse: failed to access mountpoint /media/sdb1: No such file or directory
What should I do to recover my files and fix the mount error? [edit: at the very least, how do I backup my files onto my internal HDD so I can format it and recover it in this manner]
View 6 Replies
View Related
Apr 6, 2010
I've got a bare bones Ubuntu 10.04 set up (xorg, openbox, usbmount). My (vfat32) stick drive mounts, and I can see what is in the one directory on the drive, but I can't write to the drive unless I use sudo. I tried the obvious step of attempting to change permissions on the drive..
Code:
keith@quiet:~$ sudo chmod -R 777 /media/usb0
[sudo] password for keith:
[code]...
View 9 Replies
View Related
Feb 5, 2011
i am having problems with privileges i have created a new user with my name, but i cant get root privileges on it. i need the same privileges as the root profile.
View 9 Replies
View Related