General :: Grant Regular User To Locally Mount Partitions And Shutdown The Machine Without A Password?
May 28, 2011
What I'm trying to do is to grant my regular user to locally mount partitions and shutdown the machine without a password. Here is what I've done to /etc/sudoers:
Code:
Host_Alias LOCAL = localhost
Cmnd_Alias SHUTDOWN = /sbin/shutdown
Cmnd_Alias MOUNT = /bin/mount, /bin/umount
<my_username> LOCAL=(root) NOPASSWD: SHUTDOWN, MOUNT
%wheel ALL=(ALL) ALL
My user is a member of wheel group and I want to type the password for each sudo command except for shutdown and mount. However I am asked for a password whenever I execute "sudo mount [...]" or "sudo shutdown [...]".
View 4 Replies
ADVERTISEMENT
Aug 30, 2011
How can I get palimpsest to get authorization to mount partitions when started as a regular user? It works when started from a root session.
View 2 Replies
View Related
Jul 30, 2010
I have a normal user (sites:users) and the usual http user (wwwrun:www).I'm hosting several sites and I want to be able to upload stuff via ftp, so I'm using the "sites" home (/home/sites) to keep the sites I'm hosting. Giving read permissions to all inside /home/sites makes it accessible and readable to the wwwrun user. Problems come when I need to upload something. The easy way is to give 777 permissions to the folder that's going to receive the file, but I don't feel comfortable at all with that.
What do you recommend? Is there any group configuration that could help me (like adding "sites" to the "www" group)? Or any other configuration at all that might be according the the best practices?
View 6 Replies
View Related
Jul 22, 2011
I forgot the root passwd for linux (via the "single" mode) and, according to all confirms, did so successfully! I then try to log on to Centos as root, and I can't....it says "incorrect passwd"! So then I log on as another, regular, but not root, user, with that passwd, and boot up into Centos. if I try to "su" to root, with the new root passwd, again it says its incorrect. there is no "system admin" passwd set. I checked!. I need root access within Centos!
View 8 Replies
View Related
Feb 19, 2010
I'm able to mount ntfs file system as root user but I want the same thing to be allowed to normal user .
I'm not much familier with linux environment so please explain me how to do that for normal user.
View 3 Replies
View Related
Mar 30, 2010
is it considered standard practice to change the user password on a regular basis and if so how often?
View 4 Replies
View Related
May 17, 2010
I have a problem to mount my cdrom as a regular user. After inserting a cd, I receive this error message:"Error mounting: mount exited with exit code 1: helper failed with:mount: must be superuser to use mount" After mounting the cdrom as superuser with "sudo mount /media/cdrom".I can access the cd also as regular user. This behavior is inconvenient and I would like to be able to mount the cdrom as user.Honestly, I do not have the experience to tell if this should be fine or not. Do you have any advice for me to fix this problem? I am running Ubuntu 9.10 with a 2.6.32-02063209-generic kernel.
View 6 Replies
View Related
Jan 22, 2010
My application is installed on root of RH enterprise 5 and is run via user on the same machine. This need ssh without password from the user.
i do the following :
1. run ssh-keygen in .ssh directory of the user.
2. copy the id_rsa.pub as the authorized-keys in the root's .ssh directory
3 chmod 600 to the authorized_keys
4.restart the machine
5. login from the user and ssh SER ( SER is the entry in the /etc/hosts with the ip address of the machine)
6 It still prompt for the password
How can i ssh from the user to the machine without password.
View 3 Replies
View Related
May 4, 2010
I have U1004 dual boot with MSW7 and sometimes want to mount those NTFS partitions for mostly reading operations. Ubuntu makes it easy by a single click in Nautilus. How to change this behavior and allow mount NTFS partitions with user's password only, like sudo behavior, for example? In addition, how to mount them read-only?
Note: I mount those NTFS partitions occasionally and there is nothing in fstab about it.
View 5 Replies
View Related
Jan 28, 2011
I have Ubuntu 10.10.How to allow normal user shutdown and restart without password?
View 6 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
Sep 28, 2010
What is the difference between creating a "regular" user and creating a "system" user on Linux?
For example:
Code:
adduser john
Code:
adduser --system john
Similarly it seems there are normal groups and system groups. Doing an internet search and reading man pages does not give much information on the whole concept of system and regular user/group.
View 1 Replies
View Related
Jan 22, 2011
I was wondering if you can 'share' devices in Linux by overlaying the devices nodes? For instance, is it possible to use SSH (FS) + bind to selectively bind devices locally?
View 1 Replies
View Related
Jan 31, 2010
I really can't mount my partitions as an normal user. I added umask and users option.
When I mount a partition i get no errors, but the directory is empty. I umounted first.
Here is my fstab:
Code: #
# /etc/fstab
# Created by anaconda on Sat Jan 30 18:30:30 2010
#
[Code]....
View 9 Replies
View Related
Feb 15, 2011
logon to my RHEL as a user. I am able to logon in as root locally.
View 3 Replies
View Related
Sep 2, 2010
When I mount a USB partition from the console, I need to execute mount as root unless I add a line in /etc/fstab. However, Nautilus mounts my USB stick automatically without asking for root permissions and without any entry in/etc/fstab. How does it do this?
View 6 Replies
View Related
Jun 1, 2011
I have configured a FTP (VSFTPD) Server in RHEL 5.6, which resulted me a default directory /var/ftp/pub. Even i have cerated another Directory /var/ftp/accounts. Where Accounts Directory is owned by user x in my server. I have a issue with this, It prompts me User and Password while accessing this ftp 192.168.5.20 in Linux Servers. But while i am trying this through a windows machine by ftp://192.168.5.20 it gets directly accessed without prompting me any User and Password.
I need to have FTP environment same like windows. where it must prompt me user name and password, and i must be able to upload and download data from my windows clients.
View 1 Replies
View Related
Jun 5, 2009
I have configured LDAP Server on RHEL 5.2 successfully and client can login to the server. But I do no how a client can change its LDAP password on his client machine.
View 5 Replies
View Related
Feb 10, 2010
I am trying to setup fstab to automatically mount my NTFS partitions. I have used various Mount managers to create the entries in fstab. The fstab seems fine, but when mounting at boot or even via Nautilus I get the error message that I do not have permission to mount the disk.
1) Can this permission be set in the fstab file? If so what is the syntax of the fstab entry?
2) If not, is there a tool i.e. GUI to set the mount permissions?
View 14 Replies
View Related
Jan 2, 2010
Is there a way to grant 'root' privileges to my user account? My account name ... I'll call it 'masterskop' as it is my forum name here, but not on my computer.Would it look like this in the sudoers' file?My purpose is to get access to all the folders and files in the 'File System'. The root and lost+found folders have 'Xs' on them...No access! And for example, under properties of the 'var' folder it states that 'you are not the owner, so you cannot change these permissions.' How can I get access to all of it everytime I login as the main user of my computer? I do not have anyone else using this computer.I did edit this file and used my real user name ... logged out and logged back in and still I do not have access/edit these folders and files.
View 4 Replies
View Related
Apr 29, 2009
I want my apache user (www-data) to be able to umount drives that are mounted with fuse. (i think it is the same as regular umount, but i'm not sure)
when i execute: www-data@1:$ umount /2345umount: /2345 is not in the fstab (and you are not root)
how can i get this done?
View 4 Replies
View Related
Nov 19, 2010
I have a JavaCL program trying to open a port on 41xxx and it is getting permission denied unless I run it as root. I would like to grant a single user this permission for opening this port. This program runs fine on a vanilla ubuntu install but not on server. Where does Ubuntu handle user permissions for opening ports?I understand this is typically a no-no on a server but this is an unusual circumstance.
View 1 Replies
View Related
Sep 16, 2010
I've been running Debian Squeeze for the past couple of months. I decided to use a ReiserFS (not sure if it's relevant) and had a few problems where I had to hold the power button to shut down the computer. After that the system was not the same and froze from time to time (long periods of freezing) forcing me to hold the power button to shut down the computer, again.
Now, after /dev, /sbin...etc... not being found root not exiting, I have decided to do a new install, however, after several attempts at setting up new partition tables, deleting data on the HD and re-installing, I have failed. Maybe someone can give me some input... here are is my /var/log/syslog from when I ran the Debian install disk: pastebin - syslog - post number 1941832 (I think the end is most relevant).
In the mean time I am going to delete data on the current partitions (if I can) and try to re-install.
View 9 Replies
View Related
Jul 31, 2014
Having installed Debian 7 on an old machine from a Liinux Format Magazine DVD I was unable to log in as a specific user. I can login as root and use useradd etc but when I logout of root I still cannot login as a user and nor will the machine accept my root password. I have to shutdown and reboot to get back into root. I'm using O'Reilly's Linux Pocket Guide from 2004 for the commands. Could it be that things have changed?
View 9 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
Apr 9, 2010
i've got a regular user i want to turn into admin group so he can have same privileges as a root. should i just change the GID in /etc/passwd and /etc/group or should i use usermod/groupmod?
View 3 Replies
View Related
Mar 10, 2010
My home computer is (of course) a multi-user system with my wife and I each having separate non-root accounts. Usually at the end of the day I exit X, drop down to the terminal, su to root and type
Code:
shutdown -h now
to turn the computer off for the night.
However, my wife doesn't know (or care to know) the root password, but she would like to be able to shutdown the computer.I tried making a /etc/shutdown.allow file, and typing
Code:
/sbin/shutdown -a -h now from her account, but it didn't work. I got an error that one has to be root to do that.
So, how do I allow regular users to shutdown?
View 14 Replies
View Related
Mar 21, 2010
I edited fstab file and added my hdd partitions to it. just wondering should i manually unmount my partitions everytime i shutdown or restart.
View 4 Replies
View Related
Jun 24, 2009
I am happily running Fedora 8 on my Inspiron 6400 Laptop. I am looking to upgrade to Fedora 11 soon, and had a partitioning question.
Currently my disk looks like this:
My question has to do with using LVM's in Fedora... What are the benefits of LVM vs just regular partitions (even though in F11 they are ext4 ) ? Does it make mounting the drives from a live CD or backing up partitions more difficult? I use PartImage to backup the entire partition... with this work with LVM?
View 14 Replies
View Related
Feb 10, 2010
ow do you remotely shutdown an XP host from a linux machine? I know that you can use shutdown /s /f /m IP_GOES_HEREFrom windows, but how would you do that from linux? (wine does not port the shutdown command)
View 4 Replies
View Related