General :: Difference Between Regular User And System User (and Groups)
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
ADVERTISEMENT
Aug 9, 2010
What's the difference between user permissions & users rights in linux.
View 1 Replies
View Related
Dec 7, 2010
I am building a livecd, the live user created at boot time is a member of the audio group set in /etc/group. This way works for the livecd but when installed a user must manually add himself to the audio group. How can I set new users to automatically become a member of the audio group? In /etc/default/useradd I can set only one group.
View 4 Replies
View Related
Jun 16, 2011
I've created a set of users using the newusers command. Unfortunatelly ive messed up and added all users to the 1000 group as primary group instead of giving the group argument as null what would add them to a new group. To make things clear:
The entries should be
user:password:::User Name:/home/user:/bin/bash
but I did
user:password::1000:User Name:/home/user:/bin/bash
I need to create the missing groups. A simple fix could be do a for loop creating a group with the name of each user in my file and then adding the users to it. Are there any dangers of doing it? What impact could this change have? Are there any safer ways?
A combination of the following commands:
Quote:
Add users to a group with the gpasswd command:
# gpasswd -a [user] [group]
To delete existing groups:
# groupdel [group]
To remove users from a group:
# gpasswd -d [user] [group]
If the user is currently logged in, he/she must log out and in again for the change to have effect.
Quote:
for i in (names)
do groupadd $i
gpasswd -a $i $i
Assuming I've created all users in group 1000 I could remove them from it with
Quote:
# gpasswd -d [user] [group]
View 2 Replies
View Related
May 25, 2010
i wonder, why nobody has written about it ...
How can i grant permission for files to specific user or specific group ??
Updated:
We have 3 groups: "g12" ("u1" and "u2), "g34" and "g56".
"g12" should only read the file.
"g34" should write and read it.
"g56" should have all permissions (rwx).
And others should not access the file at all.
View 3 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
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 have an HP laptop with a recently installed copy of Mint 8 KDE Community Edition. I created the initial admin user account ("joseph") when I installed.
I had an existing home directory under a different name from another installation, so I added a user with that name ("joe") and imported a copy of the original home directory. The user "joe" didn't have the same admin privileges as the initial "joseph" account, so I added "joe" to the sudoers file and the same groups as the initial admin user.
Everything works perfectly under this arrangement, for the most part. Now here's the problem:
I have a T-Mobile G1 phone that uses Android. I've rooted and ROM-modded the G1, and have the microSD card in the phone set up with two partitions. The vfat partition stores all the photos, music and other stuff the phone needs. The ROM mod allows me to store apps on the SD card, so that second partition uses ext3 for its file system.
When I'm logged in as the admin "joseph" account and I insert the SD card in the laptop's card slot (or plug the phone into the USB port), the SD card can be mounted, and I have full access to both card partitions. I can see all folders. I do this to backup the contents of the card to an external drive (especially the apps in the ext3 partition, since that's been trashed on me once before on the phone).
However, when I log in as "joe", I cannot view the contents of the ext3 partition at all. I can see the vfat drive fine, and the ext3 partition mounts, but with user/group "joseph/joseph." When I open Dolphin to view the mounted ext3 partition, I get the error "could not enter folder /media/disk-1" at the bottom of the view window in Dolphin.
Here are the relative entries returned when I run "mount" to view the mounted drives:
/dev/mmcblk0p1 on /media/disk type vfat (rw,nosuid,nodev,uhelper=hal,uid=1001,utf8,shortname=mixed,flush)
/dev/mmcblk0p2 on /media/disk-1 type ext3 (rw,nosuid,nodev,uhelper=hal)
Note that the uid listed on the vfat mount is 1001, which is the gid for the "joe" account.
I know there must be a configuration setting somewhere that will allow the ext3 partition to automount under the "joe" user account. I suppose that using the admin account to change the permissions would be the easy way to do this, but there must be something that would do it automagically. I've ripped through all the config files I can find, but can't seem to find anything that would help.
All I'm looking for here is enough access to be able to copy the directories on that mount to my external drive.
View 7 Replies
View Related
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
View Related
Feb 8, 2010
Can a sudo user do everything what a root user can do? I read sometimes expert say "You should run it as root rather than sudo user".
View 14 Replies
View Related
Jul 12, 2010
what difference between user and kernel space.
View 2 Replies
View Related
Jan 15, 2009
just getting startedin linux <fedora9> and haveseveral questions. first what bookwould be best to start the learning process? have looked at fedora 9 and enterprise and the newest fedora 10 with enterprise and these seem to be aimed at networking setups which I do not have.also in adding users and groups which I have done I think successfully however when I use the newgrp command and try to access a file I have saved under a group with two members the file does not show in the ls command.
users are jevans in group programmers cevans in group programmers in creating the file I didthe newgrp programmers command and created the filein the cevans spotand changed to jevans and negrp programmers and the filedoes not show.so what do I do here, or is my understaning of this incorrect?
View 14 Replies
View Related
Dec 28, 2009
Code:
gpasswd -a username -g audio,...
What are the other options?
View 6 Replies
View Related
Jun 12, 2011
So I just recently installed fresh 13.37 over my 13.1 install. Went multilib, and added myself to the usergroups I thought I might need. But truth is, I don't know what half of these are and I just picked the ones that sounded right. I'm the only user on this computer, although I might possibly maybe add another someone if I have to for some reason.
For my user account, I added myself to:
Code:
bin
disk
mem
kmem
wheel
floppy
mail
news
uucp
man
dialout
audio
video
cdrom
games
mysql
sshd
gdm
shadow
ftp
messagebus
haldaemon
plugdev
power
netdev
scanner
users
console
kismet
vboxusers
Basically, I want my own account to be able to do everything I normally do without too much restriction (use the disc drive, mount hard drives, browse the web, read/send email via Thunderbird, download stuff, etc), but leaving the important stuff to root so that if someone else happens to use the computer under my account, they can't do any damage. Did I select the right groups for this? Should I add or remove any? And what groups should a user have if I just want them able to browse the web, download files, use their /home, run non-root apps, and nothing else?
View 8 Replies
View Related
Dec 5, 2010
I've just installed Fedora 14 x64 and had a few problems. I have a GT9800 video card and after installation x wouldn't start untill I added xdriver-vesa nomodeset to the kernel line. Anyway I've just got it to the point where it will actually boot but wasn't asked to create a user - the live cd installation only asked for root user password. So I used useradd to create a user and I'm finally at the desktop. My question now before I go about installing the nvidia driver is can someone confirm which groups my user should belong to. I haven't used Fedora since FC3 so I can't remember.
View 2 Replies
View Related
Aug 7, 2009
I created a user and I want the particular user in multiple groups. How Should I and after creating the user,If I want to delete that user from a particular group.
View 1 Replies
View Related
Jan 29, 2010
What's the single command to add these groups to user account?
Code:
users floppy audio video cdrom plugdev power netdev
Suppose user account "myuser" is already created with only "users" group.
View 13 Replies
View Related
Dec 19, 2010
i am considered a power user in windows but in ubuntu ima total noob. in the users settings, manage groups, i see like 100 groups. and thats just annoys me, all i want is to be the admin and everything to work its not rocket science is that so hard for linux? I DO NOT WANT TO BELONG TO A FREAKING GROUP I JUST WANT 1 SIMPLE ADMIN ACCOUNT. someone please explain everything related to this subject. i mean i see stupid groups like 'audio' and 'couchdb'. WTFi dont want these useless groups to exist on my system
View 9 Replies
View Related
Jan 22, 2011
After finally getting Ubuntu 10.10 PPC up and working on my Mac Cube with low capability graphics, I noticed that when I try to run the "User and Groups" from the Administration menu, the program looks like it is starting but then never actually displays.. It shows up at the bottom of the running programs bar and then disappears. Well after having to completely re-install Ubuntu PPC 10.10 and installing all of the updates, User and group Administration still isn't working.. another app that would let me add my wife to my G4 Cube so she could use it?
View 9 Replies
View Related
Jan 17, 2010
Slackware 13 64 bit Hp Photosmart c4280 USB (All-in-one)
- Printer successfully configured using CUPS
- Scanner only works when I am Root.
- When trying to access scanner as user it says there is no scanner attached.
What should be the groups for this user in order to access the scanner? Actually, they are: haldaemon, disk, audio, video, cdrom, plugdev, power, scanner, lp. Below are the outputs for sane-find-scanner (as both root and user), although, since the scanner works well under root, I am almost sure it is a problem with setting permissions and groups.
Quote:
# sane-find-scanner
# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.
[code]....
View 2 Replies
View Related
Oct 14, 2010
If I log in as root I can vi/vim a file with no problems. When I log in as a regular user I get the following error when I try to vi/vim.
[Code]...
Why does vi/vim work as root and not a regular user? Also what rpm's can I install to get it working?
View 2 Replies
View Related
Aug 12, 2010
If I start tint2 as root it works, if I try as spoovy, it segfaults.
Code:
bash-4.1$ tint2
real transparency off.... depth: 24
xRandr: Found crtc's: 2
xRandr: Linking output LVDS with crtc 1
[Code]...
View 2 Replies
View Related
Aug 4, 2011
I have Ubuntu 10.04.2 (Linux 2.6.32-33-server on x86_64) with OpenLDAP 2.4.21 and Webmin1.550. I converted my ldap database from another system with the older style schema (OpenLDAP 2.3.3 with slightly older Webmin version 1.480) and no longer use slapd.conf, but the newer slapd.d format.
It all works fine except for one thing. When I add a new user, it lets me type in the additional LDAP fields:
But when I click the Create button, all the fields get jumbled together in the Title/Position box with a diamond question mark delimiting the fields:
Modifying existing users (which have the Additional fields displaying correctly) also has the same result - it moves the fields all into the one Title/Position box with the diamond shapes with question marks inside between each entry. Is it a problem with my schema files? I tried reverting to the older shema files and slapd.conf and it still did the same thing on the new system. I am really at a loss.
Here is also the output of ldapsearch for that user (host and samba ids are sanitized):
Previously added users that show the fields properly have "description:" and then the field listed for each Additional LDAP field. Also shouldn't the "title" be visible in plain human readable text here? - it looks like it encrypted it somehow - similar to a password hash. The older system works fine and the fields are all readable and in their proper locations. But the new system just doesn't work right.
View 1 Replies
View Related
Aug 15, 2009
I want to run /etc/acpi/actions/blank.sh as a regular user, but it will only run as root. I am trying to setup a keyboard shortcut to run the above script without success. I can run the file blank.sh as root, but not as regular user. Basically I went to: System > Preferences > Keyboard Shortcuts, and added a shortcut to blank the screen. I used the name: Blank Screen, the command: /etc/acpi/actions/blank.sh, and the shortcut: XF86Launch1. XF86Launch1 corresponds to the extra "Access IBM" key found on my keyboard. xev confirms that pressing the "Access IBM" key gives the keycode XF86Launch1. I can launch other programs such as firefox using this method. Here is the actual file blank.sh:
Code:
#!/bin/bash
RADEONTOOL='/usr/sbin/radeontool'
STATUS=`$RADEONTOOL light|awk '/The radeon backlight looks / {print $5}'`;
[code]....
The better method would be to get /etc/acpi/events/blank to accept a hotkey sequence, but this seems broken in Fedora 11. The file blank:
Code:
event=ibm/hotkey HKEY 00000080 00001001
action=/etc/acpi/actions/blank.sh
acpi_listen for keys Fn+F1 reports: ibm/hotkey HKEY 00000080 00001001, but the above file is not being executed.
View 1 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
Sep 9, 2010
My cli php is missing modules as regular user but not as root. In particular, mysql is missing... which is how I came across this issue. I'm running Slack 12.2 w/ php 5.2.14, standard Slack packages. As a normal unprivileged user:
-> whoami ; php -v ; php -m |wc -l ; php -m |grep mysql
jerry
PHP 5.2.14 (cli) (built: Aug 25 2010 15:17:31)
Copyright (c) 1997-2010 The PHP Group
[code]....
I've tried reinstalling php and it made no difference. php.ini is not to blame. I've Google'd this to death, no luck.
View 7 Replies
View Related
May 7, 2010
I recently ran into a situation where the ftp user account suddenly could not login. I used the User and Groups system tool to check the user account and reset the password. I then attempted to use ftp and login with the new password and still could not. I then went to check the permissions on the folder and found that the system partition was full, so using gpartd I was able to resize the system partition.
However this still did not fix the ftp login problem. When I opened the User and Groups tool again, all users,including my main account, except root are no longer displayed and all groups are not showing. If I try to add the original ftpuser account I get the message that the user already exists. And my main account works for login still. If I add a new user, it is not displayed in the list either.
If I do a cat /etc/passwd I see all the users listed including the new one I created and cat /etc/group displays all the groups and everything looks like the users are still associated with the correct groups. I can use passwd to change the account password without error and I can use adduser to add another user. Howerver no users are listed in the User and Groups tool and users still can not login to ftp. I can reinstall proftp if needed but I would like to be able to use the User and Groups tool to administer users again.
PS: Forgot that just before encountering the ftp login problem, Update Manager and some updates listed that I attempted to install but got an error and didn't have time to check why. Now I know that the partition was full.
View 1 Replies
View Related
Feb 19, 2016
Running 8.3..On 7.6 I had a automount and I was able to mount/unmount without issue. With 8.3, I can mount, but when I am in Thunar and i unmount, it gives me a permission denied.In /etc/groups I am in plugdev.
View 2 Replies
View Related
Jan 27, 2011
I've been having some issues with my sound card since I cannot play a sound with my current user. As a root user I can play sounds with "aplay" but as my regular user, I can't play anything
# aplay file.wav
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4633:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM default
aplay: main:564: audio open error: No such file or directory
# sudo aplay file.wav
Playing WAVE 'file.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono
I have add my user to the audio group with no success
usermod -a -G audio myuser
View 2 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