Programming :: How To Add Users With Same Name To System

Apr 18, 2011

I have a useradd script that can be found here: [Bash] #!/bin/bash #useradd script while true; do echo Please Enter First Name - Pastebin.com.I need to add users that have the same name, while keeping with the current scheme, I'd just like to have numbers at the end of the user, for example joeuser, joeuser1, joeuser2... Basically, keeping with the current naming scheme, I would like to modify the script to automatically add a number to the end of the username when I have users that have the same name.

View 4 Replies


ADVERTISEMENT

Programming :: System Administrator Wants To Change The Privilege* Only To Users 1, 2 And 3 To Execute The File /bin/xxx?

May 1, 2010

due to an exercise in Operating Systems I have to do the following: There are 6 users, user1, user2 ... user6 with home directories /users/user1 ... users/user6. User1 to user3 belong to group1, user4 to user6 belong to group2. The System Administrator wants to change the privilege* only to users 1, 2 and 3 to execute the file /bin/xxx. Which are the commands he has to type in order to achieve the previous?*I'm not sure if this is the right translation.What I have come till now is: Code: $ chgrp group1 <name_of_file> but it seems too simple to be right.

View 1 Replies View Related

Server :: Script To Add A Secondary Group To All Users Except System Default Users?

Jun 28, 2009

script which can add a secondary group to all existing users except system users in linux.

View 5 Replies View Related

Ubuntu Servers :: System Users - Proftp Works With Only 1 System User?

Apr 14, 2011

I'm niomi and I'm the first account with sudo. I add an account, bob. niomi can get in reliably on active mode. (maybe relevant?: passive doesn't work) bob is jailed to his home directory, niomi is in ftp-special which gives her access to /. bob can't log in and his shell is set to bin/false. What could have gone wrong?

View 3 Replies View Related

OpenSUSE Install :: Transfer Users From Old System To New Installed System?

Jul 19, 2010

we have a server running with Suse linux many years. Meanwhile we changed server hardware about 4 times, mostly also updating to newest Suse version. We used to copy group, passwd and shadow to a backup medium, installed the new system and restored those files onto the new system and all was running fine. Now, some weeks ago we installed 11. on new hardware and after restoring those 3 files after rebooting the system hangs when starting GUI. I can boot into runlevel 3 and login with no problem, but when I boot into runlevel 5 mouse and keyboard are frozen. Also when starting GUI from runlevel 3 with startx mouse and keyboard immediately freeze. If I restore the files group, passwd and shadow as they came from fresh new installation I can reboot and login in runlevel 5 without problems.

OK, if I compare the userlist, as it is generated bei installation,there are some usernames I formerly not had in older Suse versions. I don�t know if this can make problems? I tried to edit the files, to combine the system users from 11.2 with the list of local user names from the old system but without success, again the mouse and keyboard freeze.So some questions arise:1) Why now mouse and keyboard freeze in xsystem, when there are changes in the user list (but only in runlevel 5)2) What is the correct way to save and restore users and groups from old to new system. I googled several hours but did not find a smart way. Maybee someon can point me to a link or a howto where I find the solution

View 1 Replies View Related

Debian :: Permissions Of System Users

Feb 27, 2015

I'm building a small web gui to connect a 3g modem with wvdial via web interface using perl cgi. Which permissions I should use. Now when doing "wvdial 3gconnect" from the perl script it don't have permission to do anything, reading config files, accessing the modem etc.

Its just a little raspberry with only 1 user not available from the internet so its not a problem with loose security. Is there some easy way to let the www-data user get system wide permission without setting the permissions on each thing it should access?

View 3 Replies View Related

OpenSUSE Network :: Can't Use A Ftp With System Users?

May 11, 2010

I want to upload some files via ftp and after that to access them via http (i have apache2 installed and configured properly) I can't use a ftp with system users because they are located in home.. it should be something with virtual users but the problem with be the file permissions.

View 4 Replies View Related

General :: Check For Other Users On System?

Mar 29, 2011

Would like to know what command can be used to check for other user accounts on my system. Note, not presently logged in users like whocommand just a command to know other users?

View 1 Replies View Related

Fedora Servers :: Postfix With System Users

Oct 28, 2009

Alright I have read through and tried many different tutorials but a VAST majority of them are with virtual users. This is my own personal email server so virtual users is unneccessary when I can just use the users personal mailbox.

My postfix main.cf there are 2 things I am unsure of. 1) For system users which local_recipiant_maps do i use? 2) What should mynetworks be?As I have been testing it out through telnet I can send mail but it doesnt get to my test email (a gmail account) and when i try to send an email locally it seems that everything works fine but the mail doesnt get there, and the error i am getting is that it cant find the user.

View 9 Replies View Related

Fedora :: Switch Between Users Cause System Freeze Up

Mar 17, 2010

I just get upgraded from F10 to F12. I am having problem with switching between users. The system would freeze up and the mouse would move unresponsively, could not restart system with Ctrl-Alt Del. When it freeze up, it doesn't give error anyway on next start.I suspect the problem is doing with Web browser, If one user using browser and switch to other user without logoff, it will freeze up when other using login.It seem working on following contion.

1. It seems ok when all users quit using browser,and it doesn't matter how many times you switch between users.

2. delete all other users and operate as only one user

View 3 Replies View Related

Ubuntu :: See A List Of All Users, Including System Ones

Apr 19, 2011

what I'm doing, but I'm implementing some automatic security protocols on a ubuntu system, and I need to see a list of all users, including system ones. The reason for this is that I created a system user with a specific UID, and I forgot it. The 'user' command only lists the nonsystem users.

View 3 Replies View Related

General :: Can't Send Mail To Other Users On Same System?

Dec 27, 2010

I'm trying to send mail to other users on the same host, but they don't arrive.I've tried using mail and alpine. Both programs apparently work fine, in that they behave as expected and apparently send the email.But when logging in as the recipient, there is no mail in /var/spool/mail, and nothing in alpine INBOX

View 3 Replies View Related

General :: Create Users For Email Only And Not On The System?

Feb 20, 2011

i am reading on sendmail and so far my impression is, we must create users on the system (where sendmail is installed) for them to be able to access their emails. I wanted to ask that is it possible to create users for email only and not on the system ? Like lets say i want to create a user client named noony, who gets and sends his email to my sendmail server, but i dont want to actually create the user on my system ?

View 1 Replies View Related

General :: System Script To Display All Users?

Jul 15, 2010

Can anybody help with with shell scripting.I need a script to display all users in system.i know there are commands to display all users but i need a script for that.hope someone can share the script.

View 4 Replies View Related

Programming :: Add Linux Users Online?

Jul 6, 2010

Im looking for a script that could help me create linux users on my server online using a website.Anybody know where i could find one?or how to make it? not the best with coding doh

View 3 Replies View Related

Programming :: Isolate Users From A Group?

Dec 5, 2010

how to isolate users from a group ie accounting and force them to change their password upon login

View 1 Replies View Related

Programming :: Users Who Have Never Changed Their Password From /etc/sha

May 17, 2011

I need to create a script that returns a list of the users who have never changed their password from /etc/shadow.

As I know on linux there is a command "chage" used for find last password change. Any idea about solaris command?

View 1 Replies View Related

Ubuntu :: Users System Log Config File Location

Jul 24, 2010

where are the "System Log Viewer" config files stored? I know most have been moved into /var/rsyslog.d/ folder but where are the users config file stored? I restored my local /home to a fresh install and the Log viewer is looking for log files from the OLD install.

So there must be a config file somewhere in /home/$user that the system log viewer is reading from as well as the rsyslog.d folder...

View 1 Replies View Related

Ubuntu :: System Freezes After Log Off With Multiple Users Logged In

Oct 16, 2010

On Ubuntu 10.04 when there are more than just one user logged in, if one of users logs off system hangs with a black screen.

After I reboot the machine and log in again, just after GDM login screen I get a window with a message about PowerMeter crash, with suggestion to 'cancel' and 'log off'. Only 'Log off' works, i.e. I'm successfully logged in.

Last entries from system.log before system freeze are:

Code:

View 9 Replies View Related

Ubuntu / Apple :: Cross-system Users And Permissions?

Oct 24, 2010

I just finished installing Lucid Lynx on an iMac7,1. I would like to still be able to access my Mac Documents directory from within Ubuntu, so I can have a common directory that both systems can access. Right now, however, I am unable to do that. It looks like it might be a permissions issue- ie I am a different 'user' on both systems, so I don't have access to my Mac files. Is there a way to have the same 'user' account for both systems? If not, could a common 'group' be created in both systems that both of my 'user' accounts have access to?

View 8 Replies View Related

Fedora :: Upgrading - System Not Allowing Users Login

Jan 30, 2011

I upgraded my Fedora Core distribution from 12 to 14. Everything worked fine, except for SQUID which refused to upgrade. I then went to rescue and installed SQUID using yum and then restarted the upgrade. It did finally upgrade the system and then asked for a reboot. Well, when I selected the new kernel option in the GRUB options, since I also have Winduhs, it gave a kernel panic. I tried booting into the older kernel and it worked. Now I see the users that are there in the system in the Graphical GUI login greeter screen. But none of the users get authenticated. I used the rescue option and removed graphical login and changed boot level to 3. I also enabled the root user. In the rescue mode, if I do a startx, everything works fine.

I logged off rebooted the system. When I login, I see the version is shown as Fedora Core 14, but the kernel was still the older one with Core 12. I again went to rescue and checked out GRUB and saw that it had no initrd for the new kernel. I created a initrd image with the mkinitrd command and then added it to grub. I again rebooted. This time it shows the correct kernel, but still the system does not allow any of the users to login. All the Logins fail. I have tried going to rescue and going to the system using 'chroot /mnt/sysimage' and doing a startx for Graphical. Everything works, but only with the Rescue mode in the DVD. The normal boot/login sequence does not work.

Incidentally when I do a 'yum distro-sync', I get something like this :

---> Package dialog.i686 0:1.1-9.20080819.fc12 set to be downgraded
---> Package dialog.i686 0:1.1-11.20100428.fc14 set to be erased
---> Package diffstat.i686 0:1.51-1.fc12 set to be downgraded
---> Package diffstat.i686 0:1.51-2.fc14 set to be erased
---> Package diffutils.i686 0:2.8.1-25.fc12 set to be downgraded
---> Package diffutils.i686 0:2.8.1-29.fc14 set to be erased

It still seems to believe its a Fedora Core 12 system. Another information is that when I leave rescue mode and do a normal boot without installation media, it starts doing some SELinux relabelling and reboots. Any pointers on how I can get the system working. I am able to work with the rescue mode way, with any user, as it does not ask for any password. I can even do startx and work on the GUI. All my data is also there. I just am unable to get the user authenticated using normal boot/login. I have tried using passwd -d username, but it gives an error :
passwd: libuser initialization error: could not open configuration file `/tmp/libuser.ElY0r9': No such file or directory
In fact, I am now in rescue mode only when I am writing and sending this.

My GRUB file is :
default=4
timeout=25
splashimage=(hd0,9)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.35.6-45.fc14.i686) with Initrd
root (hd0,9)
kernel /boot/vmlinuz-2.6.35.6-45.fc14.i686 ro root=UUID=c91b69c3-0d89-4242-99db-6e0cc04ce3de LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
initrd /boot/initramfs-2.6.35.6-45.fc14.i686.img
title Fedora (2.6.35.6-45.fc14.i686)
root (hd0,9)
kernel /boot/vmlinuz-2.6.35.6-45.fc14.i686 ro root=UUID=c91b69c3-0d89-4242-99db-6e0cc04ce3de LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
title Fedora (2.6.32.21-168.fc12.i686.PAE)
root (hd0,9)
kernel /boot/vmlinuz-2.6.32.21-168.fc12.i686.PAE ro root=UUID=c91b69c3-0d89-4242-99db-6e0cc04ce3de LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
initrd /boot/initramfs-2.6.32.21-168.fc12.i686.PAE.img
--- snip

View 1 Replies View Related

General :: Create System And Samba Users With A Script?

Jan 7, 2010

I need to add linux and samba users using a shell script, it falls over because you are prompted to set a password.

I had a similar problem when installing the samba package using a script because it asks for confirmation after the command, I got round it using --force-yes -y as below.

apt-get install samba smbfs swat --force-yes -y

I suspect and hope you can do something along those lines when creating a linux user and a samba user, something like

smbpasswd �a username ?

View 3 Replies View Related

Security :: Preventing Users From Browsing File System

Nov 5, 2010

What methods exits to restrict which directories a user may browse on the filesystem. I want to prevent php scripts from being able to view system files. I've seen two solutions, but neither are satisfactory:Chrooting a directory that the script is in, but this requires that all the necessary php libraries/files are moved/copied into the right place relative to the chroot directory. I don't feel that I have the technical ability to achieve this.Putting php into safe mode and disabling *nasty* php functions. But this is ineffective if just one obscure *bad* php function is missed.

View 5 Replies View Related

Security :: Use Of System-config-users Not Capturing Activity?

Dec 15, 2010

I have an auditing problem. I am required to be able to track user account modifications (creates, deletes, password changes, etc.) My team and I implemented auditd 1.7.17 and borrowed an existing rule set from /usr/share/doc/audit-1.7.17/nispom.rules. What we're seeing is that user account activity from the command line is retrievable by doing an 'aureport -m'. However, doing the same through the GUI, 'aureport -m' does not display the activity. So I have two questions:1. Is there another location I should be looking to find the user creation activities when using the GUI?2. Is there a way to make the activity using the GUI be captured in /var/log/audit/audit.log so 'aureport -m' can report it?Someone suggested a PAM configuration change, but was not able to tell me what change to make.

View 3 Replies View Related

Programming :: Perl - Process Control As Different Users?

Jan 10, 2010

I need to control daemons like dhcp/bind from within a perl script. I could run the script as root to restart/stop/start the daemons however, this is not good for security.

What are the ways of controlling processes within perl as different users?

View 1 Replies View Related

Programming :: Script For Finding Powerful Users?

May 19, 2010

I wanted to find powerfull users in Linux system and while searching in internet i found the below script.

grep -v -E "^#" /etc/passwd | awk -F: '$3 == 0 { print $1}'

what does "^#" means..?

cat /etc/passwd | awk -F: '$3 == 0 { print $1}' aslo gives me same result.

View 5 Replies View Related

Programming :: Script To Compare Users In Files?

Mar 28, 2011

I have two files with user DN's that exported from two different LDAP directories. I wanted to write a script that reads(checks) users (cn=user1) in file Ack to see if users(cn=user1) exists in file B and give me nice output with what users are missing in file B.I have around 30k users in file A with following format..Quote:

cn=user1,ou=some,o=org
cn=user2,ou=some,o=org
cn=user3,ou=some,o=org

[code]...

View 7 Replies View Related

Fedora :: System-config-users Wont Stay Open?

Nov 5, 2009

when I open this it opens up greyed out for a split second then closes.I started it in a console ,it did the same but the following was left in the terminal

Code:
[tytower@localhost ~]$ system-config-users
Traceback (most recent call last):

[code]...

View 2 Replies View Related

OpenSUSE :: Ldap Users Appear With UID Numbers, System Claims They Don't Exist?

Jan 19, 2011

I wanted to use ldap to create users on my machine.I got LDAP set up via yast, and it seems to work OK. But when I create a user via LDAP, the system doesn't seem to want to know.LDAP actually creates a home directory for the new user, but the system merely assigns it a UID and nothing else.I have access to another opensuse system which does not behave in this way. I.e. I can set up a user exclusively in LDAP and the system will recognise the new user no problem.I have compared the two ldap configurations to see if there's some magic "propagate LDAP users to Local users" setting, but this doesn't appear to exist

View 2 Replies View Related

Ubuntu Installation :: Allowing Normal Users To Upgrade The System?

Sep 11, 2010

Here's what I want to do: install ubuntu on a laptop and then create a normal user so that the user could install the normal upgrades without using the root account (or getting root privileges via sudo).

I know that this can be done by adding the user to the admin group, but this has (at least) two bad side effects:

1. The user can use sudo to gain root access. (And then do everything: install or remove programs...)

2. The update-manager doesn't seem to appear in the panel. (In stead it opens in the background.)

I could easily make a script that downloads and installs the upgrades automaticly, but I'd like to give the user a chance to choose when to do all this. So that it's not done for example when the user is using slow mobile connection.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved