General :: Ubuntu 10.04 - Change System Display User Name On Prompt?

Sep 22, 2011

Choose Menu System->Administration->Users and Groups

I am able to see my Users Settings as follows:

User name: mike

Then why I still see the following prompt line? code...

If my understanding is wrong, then how can I change it in this way?

View 1 Replies


ADVERTISEMENT

General :: Unable To Change System Time As Non-Root User

May 6, 2011

I need to edit the system time as a not-root user. I am carrying out the following actions in my program.

1. Read the User Id of the process. User_ID= getuid()
2. Printing Capabilities(Permitted, Efffective, Inheritable)of the process
3. Setting UID = 0, using setuid(0)
4. Calling the prctl(), function to keep capabilities
5.Switching the UID from root to User_ID of the process
6. What we have now is a process with root capabilities as a non root user
7. On printing Permitted, Effective, Inheritable capabilities, I get the following
--> Permitted = 0xfffffeff = Effective
Inheritable = 0x0; with UID = 1001;
8. I then try and set the system time with --> system("date -s 10:00");
9. I get an error: date: cannot set date: Operation not permitted
10. I am unable to understand as to why I cannot set the time even thought the capability bit CAP_SYS_TIME in the Permitted and Effective sets are SET.

View 3 Replies View Related

General :: Change Bash Prompt On Ubuntu?

Feb 2, 2011

I have one account on an Ubuntu server with the correct PS1 variable and I want to make one of my other accounts on the same server have the same PS1 variable, so that my prompt on this new account (when I ssh into the machine) is the same as the original account.

Is there a way that I can pass this PS1 variable between accounts so the prompt is the same?

I have tried printing it out, copying the output, and then reassigning it to PS1 on the new account, but it just doesn't work.

Here is what is printed when I type echo $PS1:

[e]0;u@h: wa]${debian_chroot:+($debian_chroot)}[�33[01;32m]u@h[�33[00m]:[�33[01;34m]w[�33[00m]$

I want to assign that prompt (shown above) to my new account.

View 2 Replies View Related

General :: Run One Command As Different User Without A Password Prompt?

Aug 4, 2010

I need to run one command as different user with out a password prompt.

I did this

Code:
one localhost= (two) /usr/bin/whoami

This work but it prompts for password. Is there a way that can be done with NOPASSWD option ?

View 1 Replies View Related

General :: No Password Or Username Or Grub Prompt On Ubuntu Mac User?

Jan 30, 2010

I have bought a Mac Laptop however it has a username and password which I don't know. I've looked all over to see how I can overcome this lot's of people have said to enter at Grub prompt to take you to recovery, however I have no Grub prompt and Mac is not booting from cd rom.

View 1 Replies View Related

General :: Change Default Prompt

Dec 15, 2009

I am using Puppy Version 430.I want to change the default prompt from # to the current working directory followed by one space. I can do this by opening a console window and entering PS1="w " How do I force this to persist when I restart the computer.

View 1 Replies View Related

General :: F1-F6 Console Doesn't Prompt For User/password?

Apr 21, 2011

I'm running Debian Wheezy and I don't know why, but whenI switch to console F1(Ctrl+Alt+f1) I can't enter login information. It's like Debian didn't have completely starting and wait always.The F1 console looks like this:

[screen content]
Starting enhance syslogd: rsyslogd.
Starting system message bus: dbus.

[code]...

View 9 Replies View Related

General :: Bash Prompt Doesn't Change From $ To # For Su

Jan 25, 2011

I'm trying to change the bash prompt and based on the man pages $ should show a $ which changes to a # for a SU. However, this doesn't happen on my machine, it's $ for both user and SU.The line in .bashrc is:export PS1="u@h:w$"

View 7 Replies View Related

General :: Change My Default Shell Prompt?

Jul 8, 2010

I have looked almost everywhere for how to change my default shell prompt. When I open my bash shell, the prompt is [fedora-dev@Fedora-Dev Documents]$. I would like it to open at fedora-dev@Fedora-Dev]$.

Can someone tell me where to change this at. I have looked in .bashrc, etc/profile, and environmental variables.

View 6 Replies View Related

General :: No Prompt For Root Password After Attempting To Enter Single User Mode?

Jul 13, 2011

I followed instructions to enter single user mode by adding single at the end of kernel line but after that it doesn't ask for root password but brings up the sh# prompt. Isn't that supposed to be insecure? I understand for this the grub password can be applied but even after adding "single" it should ask for root password..or it should not..??

View 3 Replies View Related

General :: Create User Add File With Default Password And Force User To Change It?

Feb 2, 2010

I want to add 50 new users, not on the server yet I want to add them all to group Accounting - with 1 option, not user by user I want to setup a default password for them all, and have it say something like 'You must now change password or no access will be permitted' Any other options I also want to do once, not for each user?

View 3 Replies View Related

General :: Change Password For Newly Created User And Root User Using Graphical?

Jan 15, 2010

I am using mint 8 for a 2 weeks, I am noob to linux but I like Mint than any other linux distro which is great alternative to windows. I have a problem regarding password reseting.

1. My laptop automatically get logged in without asking user name and password.

2. I tried to change password for newly created user and root user using graphical way but it does not work.

2. I can perform administrator task using only OEM user which is default inbuilt user of mint.

How can make my laptop to ask password when mint get booted? How to change password for other users?

View 1 Replies View Related

General :: Disable User And Change User Password Using SSH?

Oct 5, 2010

How do I disable and change the user password using SSH on a Linux

View 3 Replies View Related

General :: Change All Files Belonging To One User To Another User?

Jul 20, 2011

I'm looking for a Linux command that can change ownership of all files belonging to a given user,preferably in a targeted directory, to another specified user. My dream command would look something like this. chuser -R --olduser tom --newuser jerry

This is my scenario... I have a backup file (.tgz) with user and group information preserved in it. It was taken from a web server running Apache and MySQL. The files in the backup are from across the system and contain files from several different users and several system type accounts and it is key that when restored on the new server the settings are not lost. The problem is that the users on the machine the files are being restored to don't match the ones in the backup file. For instance both machines had a MySQL user but they have different user ids and there are several user ids that existed on both machines that belong to different users. This means there is no way to sync the users on the new machine to the ones on the old machine. I can find all the users files with the find command like this...

find /decompressed-backup-dir -uid 1050
or
find /decompressed-backup-dir -user tom

If, as I suspect, there is no way to do what I want with a single command then perhaps there is a way to pipe the results of the find command to another command to handle the ownership change?

I could do this with a PHP script but there are 4GB and tens of thousands of files in the backup so I don't want to use PHP or Perl but I would be happy with a shell script that could handle it.

View 2 Replies View Related

Software :: Allowing User To Change Their System Account Password From Intranet?

Jan 10, 2011

I have configured httpd web server to allow each of the system users to have their own web page (using UserDir directive).At the same time I have configured ftp server to allow the users to upload their html files to the web server.With above set up my users need not have any knowledge of linux; they can work from any windows PC on the network.There is no problem in the above.However, now I need to allow my users to change their passwords. The point here to note is that the users should be able to do this even from windows PC on the network. One of the way is to configure a telnet server (or sshd). But I find that the windows PC does not have telnet client.The other idea is that I should put a php script on the server which would take user name and password from the web page and then change the password. I don't know how can the system account password be changed through script - I will have to check this out.

View 4 Replies View Related

General :: Get Command Line System OS Using Sandbox For Learning Its Prompt?

Nov 27, 2010

Possible Duplicate:
Version of Linux with a command prompt?

Which software of Linux to use for command line running? Since I am using MySQL to run from Linux and want to run Linux, which software to download in Linux? There are multiple ones. Can I run .sh scripts and learn how to operate on Linux using the command line? Also use MySQL as backend on Linux?

View 1 Replies View Related

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 View Related

Software :: Display CURRENT Time In Prompt?

Jan 18, 2009

After much too often wondering "hey, when did I actually start this time-consuming command?", I'm considering adding a timestamp to my bash prompt.My first try was simple: PS1="(A) $PS1" which gives a display like:(16:58) exscape ~ #

However, the problem with that approach is that it displays the time when the line was written, not when the command on it was executed. So, if I run "ls" at 16:58, and get a new prompt "(16:58) ..." and then run the next command 2 hours later, it'll look like this:(16:58) exscape ~ # new-commandI of course want the line to display the time when the command was actually run, not when the prompt appeared.

View 9 Replies View Related

General :: Display Password Policy Information For A User - Ubuntu?

Jun 9, 2010

Ubuntu Documentation > Ubuntu 9.04 > Ubuntu Server Guide > Security > User Management states that there is a default minimum password length for Ubuntu:

Say the password is to be modified by the user using passwd. Is there a command for displaying the current password policies for a user (such as the chage command displays the password expiration information for a specific user)?

This is rather than examining various places that control the policy and interpreting them since the process could contain errors. A command that reports the composed policy would be used to check the policy setting steps.

View 1 Replies View Related

General :: Change Display Settings Without Using GUI?

Jul 12, 2011

i have debian squeeze installed on an old computer to use as a file/web server. i had an extra monitor laying around and wanted to use it with the server. after about half an hour or so, it turns off and i have to press a key on the keyboard to get it to turn back on. i'm not sure how to keep it from doing this without installing a gui. does anyone know how to do this?

View 10 Replies View Related

General :: Create A New Mysql User And A Mysql Database At The Shell Prompt?

Aug 7, 2010

How do I create a new mysql user and a mysql database at the shell prompt?

View 1 Replies View Related

General :: Display User's Last Login Information When Connected Through FTP?

Apr 11, 2011

I want the last login information whenever I log in through FTP.

This is possible for normal console and SSH logins by configuring in /etc/login.defs file. But I am not able to view the last login information when FTP is used.

View 5 Replies View Related

General :: How To Change Gnome Display Setting

Jan 11, 2010

i was using GDE in my ubuntu system. But yesterday i did some thing so my ubuntu system has changed as debian. My login screen changed and i cant access "system->administration->Login window"when i do this i am getting this error message"GDM (GNOME Display Manager) is not running.You might be using a different display manager, such as KDM (KDE Display Manager), CDE login (dtlogin), or xdm. If you wish to use this feature, then your system will need to be configured to use GDM instead." How to come back to my normal original ubuntu with GNOME.

View 1 Replies View Related

General :: A Script That Will Display Only The Last Login Of Each User With The Date And Year?

Apr 20, 2010

This is on an old machine that is running Solaris 7. I know that I can run the command script 'last' to get a list of who has logged in. When I do that I get a very long list of lines like:

username pts/4 100.32.11.123 Wed Dec 6 18:30 - 18:40 (00:09)

I see that the year is not posted. I have about 11 years worth of logins where users have logged in multiple times over several years.

So, here is what I need: I only need the date of the very last time a person logged in. I also need the year of that last login.

script that will do this? Something with output like

username1 pts/4 100.32.11.123 Wed Dec 6 2005 18:30 - 18:40 (00:09)
username2 pts/4 110.33.11.18 Tue Apr 20 2009 8:30 - 9:30 (01:00)
username3 pts/4 10.32.11.18 Mon Jun 12 2008 1:30 - 2:40 (01:10)
username4 pts/4 110.33.12.19 Sat Oct 10 2001 00:12 - 00:13 (00:01)
...

View 4 Replies View Related

General :: Comparing Two Files - Display The User Names That Are In The First File And Not The Second

Sep 17, 2009

Im trying to compare two files and I only want to display the user names that are in the first file and not the second.

So I have one file named final.txt (which contains every user name and only the user names in a list no other information)

Then I have another file Over1.txt (which only contains certain users that have different permissions This file is also setup differently with the user name and some information about the user after the user name.

I need a way to compare final.txt to over1.txt so that I will only display the names that are in final.txt but not Over1.txt

Ive tried using diff and comm but just cant seem to get it two work correctly. Im not sure if im missing a option or what.

View 5 Replies View Related

General :: User Passwords Display In Log File In Clear Text?

Apr 21, 2010

Running SunGard Banner software on RHEL 4.2 x86-32 bit Linux server Oracle Application 10.1.2.3 samba enabled. Users run processes/reports that are logged in a daily log file. In our daily job submission log files the user password shows up as clear text.The password shows up as $PSWD (sample from the logfile):

$JOB
$BANUID
$PSWD

[code]...

View 1 Replies View Related

General :: Files (system & User) Created After Login To System In RHEL 5.0?

Jun 4, 2010

How to find, what are the files (system & user) created after login to the system in RHEL 5.0?
Any single command available?

View 1 Replies View Related

General :: Security - Let Any User Perform Administrative Tasks On A System Irrespective Of His / Her Privileges On That Particular System?

Sep 26, 2010

I often get responses from people who first say: "Are you sure? You want your network to be exposed to the outside world?" I am not experimenting on a Production Server of NASA or any Security Concern Department. Friends, there is no harm in experimenting on your personal computer or on a test computer which is isolated from the production environment. Look at hackers! What do they do? If they don't know how security is breached then how would they come up with security measures?

If my question reads... "How to let any user perform Administrative Tasks on a Linux System irrespective of his/her privileges on that particular system?" then I would not get the right answers in the first place. They will say... "You are letting everyone destroy your system... are you sure you want to do that?" My question is: Why should we restrict ourselves from experimenting even if it sounds weird to other people?

I give you an example where it is desirable to let an unprivileged user perform certain tasks. You want to know if there are any employees in your office who are storing videos in their home directory and filling up the disk space to a great amount. You have a department called "Command Center or Data Center Operations or Help Desk" call it whatever you would, whose work is to monitor such activities, and you create an account "monitor" for them to monitor such activities but they are not able to do them:

[Code]..

View 8 Replies View Related

General :: Change The Display's Frequency From 60hz To 50hz?

Nov 2, 2010

I want to change the display's frequency from 60hz to 50hz, on a fedora core 9 box, anyone know how to do this?

View 2 Replies View Related

General :: Image Bigger Than Display - Wallpaper Change

Aug 31, 2011

I am looking for a tool that can resize images and display them on the root window of an X11 display at a specific coordinates. I can use display from iagemagick like so display -window root -geometry '-0-0' -resize '1920x1080>' IMG.png But cannot use it since it does not display on the right root window -- pseudo transparency in urxvt shows the wrong image as shown here. Ideally, I would like to resize any image bigger than my display. Does anyone know of a too that can do the following: Resize the image if it is bigger than some size (aka the display size). Set the images top appear at specific screen coordinates.

View 1 Replies View Related







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