Ubuntu :: Add A Custom Script To Execute When Logging And Shutting Down In Into A User Profile Like /home/test Or /root?

Oct 27, 2010

I am afraid to ask with so many things changing around in each new release.Where would one add a custom script to execute when logging and shutting down in into a user profile like /home/test or /root ?would this be rc.local?

View 2 Replies


ADVERTISEMENT

OpenSUSE Install :: Recreate A User Profile / Home Dir For An Existing User A/c?

Feb 16, 2010

what is the correct way/procedure to re-create a user home directory. For instance, on a Mac/Windows machine, i would just rename the existing user profile [home dir], and then just log back in as the user - job done. On OpenSuse/Linux, it seems it does not work that way..?! When i try to rename my home folder to say me.old via root, and log back in as me, i get all kinds of errors. Opensuse does create a new home dir, but it appears not properly.

View 9 Replies View Related

General :: Root Logins Are Not Allowed \ When Try To Login As Root, After Logging Out As User, It Does Not Allow?

Dec 2, 2010

i just installed linux mandriva 2009. i set password for root and created a user account. when i try to login as root, after logging out as user, it does not allow me and gives the error "root logins are not allowed". even it does not show the root account. if i try to go to root from konsole terminal using su root, it allows to enter as a root but when i try to start the GUI with startx it gives error.not sure what to do and why i can't see my account in GUI mode

View 5 Replies View Related

Security :: Prevent A Non-root User From Shutting Down, Rebooting Or Suspend The System?

Mar 3, 2010

I'm using Gnome and I'd like to still have the ability to reboot/shutdown from one particular account as well as root. How would I modify the chmod command to add this ability?Also, I have a few users who just will hold the power button in to shutdown the machine. How can I keep them from doing this?// Pruned from the vintage 2007 Prevent a non-root user from shutting down, rebooting or suspend the system thread. Please create new threads instead of resurrecting ancient ones.

View 2 Replies View Related

CentOS 5 :: Xorg: No Profile For User 'root' Found

Jul 28, 2009

I'm trying to get Xorg running on a Dell 2850.I can't get it to work.I installed xorg-x11-drivers via yum, and used both "Radeon / ati" drivers, including the default vesa.

Here are the main errors (error log file attached):

Could not init font path element unix/:7100, removing from list!
(**) RADEON(0): RADEONSaveScreen(2)
localuser:root being added to access control list
No profile for user 'root' found

[code]...

and at the end it says:

FreeFontPath: FPE "built-ins" refcount is 2, should be 1; fixing.

View 1 Replies View Related

Installation :: How To Logging Root User

Nov 27, 2009

How to logging in root user[ubuntu].

View 1 Replies View Related

Server :: Root User Not Logging In Gui / Get That?

Dec 13, 2010

I have RHEL4 server. my root is able to login from CUI mode but not able to login from GUI mode. normal user is able to login from GUI mode and we go to root through su command but directly root is not able to login from GUI

View 2 Replies View Related

Fedora :: Host A Test Website On /home/user?

May 20, 2010

how to host a test website on /home/user? with selinux on (if possible) on fedora 12

View 1 Replies View Related

General :: Avoid Logging With Root User?

Jul 22, 2010

I have created a linux machine and installed some softwares on it with root user privileges . I used to login with root user credentials for doing the various task.

Later i have realise that this is not the best practice to follow and there should be a new user with less privileges to be created for doing the day to day task.

I have read the steps to create the user but will that new user sufficient enough to do the task that i m doing it through root user?
Will my software allow the new user to work on them?
I would be glad if someone points me to a guidelines on what should be my next step?

View 4 Replies View Related

Fedora :: Logging Into Root User In Gnome Desktop?

Mar 10, 2011

I need to update my NVIDIA server settings, but to do so I need to be logged in as root user. Does anyone know how to do this from the gnome desktop?

View 6 Replies View Related

OpenSUSE Install :: Cannot Log In To Any User Account Including Root After Logging Out In 11.4

Apr 17, 2011

My install of 11.4 has been running perfectly for for several weeks now. But- (always a but) today it started acting up. I cannot log in to any user account including Root after logging out. After a cold boot I can log in again anywhere but after logging out I have to reboot again then I can get back in to any account once. After logging out any attempted log in causes the splash screen to blank for a few seconds and then it comes back with the previous successful user name log in but typing in the password blanks the screen a few seconds again. Clicking on a user account also blanks the screen a few seconds and then it again comes back with the previous log in users name.

View 1 Replies View Related

Ubuntu :: Recovery Mode In Grub - Can Change Password Of Every User By Logging In As Root

Mar 25, 2010

I just tried ubuntu 9.10 in recovery mode i came to know that i can change root passwd without knowing the password then i can change password of every user by logging in as root

View 2 Replies View Related

General :: Execute Scen-20-test And Vbr-20-test In Ns-allinone-2.34?

Mar 26, 2011

I have created mobility of 20 nodes and vbr traffic using following attached script I executed the file as ns234 vbr.tcl I got the vbr.tr and vbr.nam but I was unable to load the graph using matlab <trgraph> I thought problem with is vbr.tcl script.

View 1 Replies View Related

Security :: Su - Incorrect Password - When Logging As Wheel User And Trying To Access Root

Dec 18, 2010

I have tried to not allow root access and have created a wheel user.

Now I can not logged in as root.

Its okay but when am logging as wheel user and trying to access root then it says:

Code:

View 14 Replies View Related

Debian Configuration :: Allow Gnome Login By Root User On A Test Machine?

May 2, 2011

Just for some testing on a test non-productive machine, how to allow Gnome login by root user on squeeze?

View 8 Replies View Related

General :: Execute Script Before Shutting Down In Ubuntu?

Aug 10, 2010

When I shut down my computer I want to show some pending tasks that I have to do before leaving the office...

I did a local application to manage those tasks, so basically I just want to run a command, and shut down after I kill the app executed.

I have already tried with these options:

/etc/gdm/PostSession/Default --> this works only when I select LogOut option instead Shutdown. /etc/rc0.d/K01mycustomscript --> execute script after X is killed $HOME/.bash_logout --> This looks like does nothing. ./app-to-run && sudo shutdown -h now --> Don't like it for 2 reasons, prompts for sudo password, and can't use my laptop shutdown button.

I am using Ubuntu 10.04.

View 4 Replies View Related

General :: Can Root And Main User Account Share Same Home Directory?

Feb 13, 2011

Or would this sacrifice security in some way? I've been using root only, and am ready to have a seperate account now. It's the dotfiles for GUI apps that I'm concerned about:

Code:
-rw------- 1 root root 98 Feb 13 16:23 .Xauthority
-rw------- 1 root root 6392 Feb 12 18:13 .bash_history
drwx------ 5 root root 4096 Jan 13 17:47 .config
drwxr-xr-x 4 root root 4096 Dec 29 21:36 .fvwm
drwx------ 4 root root 4096 Nov 7 19:55 .mozilla
-rw------- 1 root root 218 Jan 26 10:04 .recently-used.xbel
-rw------- 1 root root 98 Feb 13 16:23 .serverauth.17096
drwxr-xr-x 2 root root 4096 Dec 25 12:42 .tuxcmd
drwxr-xr-x 2 root root 4096 Feb 12 17:25 .xine

View 11 Replies View Related

General :: Logging To A Custom File ?

Dec 29, 2010

when you log in through the terminal as root, you get a question if you want to apply the proxyconfiguration or not.

I have done this by changing the .bash_profile of the root-user:

Code:

I have adapted rsyslog with the following:

Code:

But it doesn't work. The messages have to be written to the logfile by using the logger-command.

View 3 Replies View Related

General :: Login As Other User Using Shell Doesn't Load The Profile For That User?

Dec 11, 2009

I am using the sudo command to log on locally as another user by the following command:

sudo -u theotheruser -s
or
sudo -u theotheruser sh

As I see it, this initiates a new shell with the mentioned other user.However, this doesn't load that users profile from his home directory.Is there a way to automatically read the users profile when login in with selected command? I am mostely interested in getting a working prompt when logged in.

View 11 Replies View Related

General :: CentOS / Sudo Doesn't Accept Root Password But Logging In As Root Works

Apr 9, 2010

I was trying to edit a file requiring root permissions, so I used sudo. I typed the root password and it failed. This happened three times, and the process was ended. I then logged in as root (su) and was able to navigate to the file and make changes as root. Am I missing something? How would I edit the sudoers file such that this password would work? Or is there another way to log in to the sudo group to make these changes? How do I set sudo passwords?

View 1 Replies View Related

Security :: Secure FTP - Root Privileges After Logging In Form A Macintosh And Could Browse The Root Directory

Apr 12, 2010

I run ProFTPd with TLS authentication on my Debian Lenny server. My problem is that despite of the fact that my users connect chrooted, one of my friends had root privileges after logging in form a Macintosh and could browse the root directory, too.

View 1 Replies View Related

General :: Execute Commands After Logging In Into The Ssh Connection Not Locally?

Oct 20, 2010

I am creating this script which will login to a server with ssh and check if a particular exists there, if not it will create the user.This is the script:Quote:

ssh 192.168.100.5
cat /etc/passwd|grep -i $1 > /dev/null
if [ $? -eq 0 ];

[code]...

View 9 Replies View Related

Ubuntu :: Custom Launcher Application - Will Only Execute Once?

Aug 1, 2011

I'm running 11.04, and I installed the following script for a custom google docs launcher to put in the unity launcher. However, if I execute the application it opens, but once I close the browser, the google docs launcher is no longer clickableAs a side note, I'd also like the launcher to open the new template of google docs because it opens to the older interface when selecting to make a new document.

Code:
[Desktop Entry]
Version=1.0

[code]...

View 1 Replies View Related

Ubuntu :: Cant Log Out Of User Account Without Shutting Down?

Oct 7, 2010

i cant log out of my user account without shutting down the computer, and no one else can either. computer can't be turned off unless i, (administrator)have logged out, this can't be a default setting surely.

View 2 Replies View Related

Fedora Servers :: Custom 403 Does Not Work - Test Page Shown ?

Jun 12, 2011

I use .htaccess to deny all ip addresses except certain to an internal wiki on a subdomain.

Code:

If access is denied to the homepage users are shown the Fedora test page instead of my own custom 403 error page. When I go to a page - not home - I see a standard 403 error page.

Code:

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. Apache/2.0.54 (Fedora) Server at wiki.domain.com Port 80. What am I missing here? Seems like my ErrorDocument is not being reached..

View 2 Replies View Related

Ubuntu :: Why The User Created At Installation Time Is A Custom User Instead Of An Administrator

Oct 31, 2010

why the user created at installation time is a Custom User instead of an Administrator.

View 4 Replies View Related

OpenSUSE Install :: Shutting Down Requires Root Password?

Apr 29, 2010

'm running openSUSE 11.2 with KDE 4.4.2.

Since i installed KDE 4.* Whenever I go to shutdown, I get the shutdown dialogue, I hit shutdown, it logs me off, shows some text on shutdown screen, and then opens up the GUI again, bringing up a small window, where It asks for the root password, in order to shutdown. If i don't give it the root password, it goes to the login screen.

I cannot, any way, command line, GUI, or anything, shutdown without providing a root password.

If I use the command shutdown now, as root, it logs me off and goes through an endless cycle of logging off, and then asking for root to shut down, and not shutting down (All on the CLI), and everytime i give it the password, it cancels shutdown and goes back to the prompt. I eventually have to pull the battery to kill it in that case..

I have tried chmoding the shutdown scripts to make it work, it doesn't.

View 2 Replies View Related

Fedora :: Root User Won't Be Able To Read "active" Xguest Home Directory

Aug 31, 2011

Xguest uses namespace.d/xguest.conf.

[code]...

root user won't be able to read the "active" xguest home directory (ll /home/xguest will only show an almost empty folder with content from /etc/skel). How can a root user list the folder of an the xguest home directory (while xguest is logged in)?

View 9 Replies View Related

General :: Testing Home Directory Scripts By Setting $HOME To The Location Of The Test Directory

Apr 20, 2010

I have an interdependent collection of scripts in my ~/bin directory as well as a developed ~/.vim directory and some other libraries and such in other subdirectories. I've been versioning all of this using git, and have realized that it would be potentially very easy and useful to do development and testing of new and existing scripts, vim plugins, etc. using a cloned repo, and then pull the working code into my actual home directory with a merge.

The easiest way to do this would seem to be to just change & export $HOME, eg

cd ~/testing; git clone ~ home
export HOME=~/testing/home
cd ~
screen -S testing-home
# start vim, write/revise plugins, edit scripts, etc.
# test revisions

However since I've never tried this before I'm concerned that some programs, environment variables, etc., may end up using my actual home directory instead of the exported one. Is this a viable strategy? Are there just a few outliers that I should be careful about?

View 1 Replies View Related

Red Hat / Fedora :: Login - Error "no Profile For The User Can Be Found And It Couldnt Create Per-user Gnome Configuration Directory"

Aug 8, 2010

I have a network set up that has been working for around a year with no problems but has now developed a login problem. The system was set up with a main server with all users on it and another PC located elsewhere that people could log onto using there personal login and password that then gained access to the account on the main server. This remote PC has now got the problem. When you try to log onto an account it comes up with the message "your session has lasted less than 10 seconds. If you have not logged out yourself this could mean there is a installation problem or that you are out of disk space."

Error message says that no profile for the user can be found and it couldnt create per-user gnome configuration directory. I can log on as root onto the remote PC as it is obviously a local account but all the account on the main server are not accessible. From the root account I can see that the connection to the server is OK and I can actually log into the accounts on the server using the failsafe session so the physical network is OK.

I never built or designed this set up and to be honest I normally work with windows so its all a bit strange to me. Both PC's run Centos 5. I have checked the messages log and there doesnt seem to be any indication of a problem. Just that it stopped connecting from the remote PC. The accounts are all active on the main server itself and have no problems being accessed.

View 3 Replies View Related







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