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


ADVERTISEMENT

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

General :: Create A Profile Settings And Network Drive Can Be Mapped Automatically When User Login?

Mar 26, 2010

create a profile settings and network drive can be mapped automatically when user login to the (like Domain and active user profile on windows environment) Ubuntu systems?

View 1 Replies View Related

Ubuntu :: Can't Load User Profile On Windows Side

Jan 5, 2011

i have a dual boot set up on my laptop using wubi, but now i can't log on to my windows side, it gives me an error message saying that it can't load the user profile. how do i fix this without using system restore?

View 4 Replies View Related

Debian :: Why Doesn't Profile Load At Login With Lightdm

Apr 14, 2016

I have Debian 8.4.0 with lightdm. I'm trying to load some command lines at session startup, putting these in ~/.profile but the file is not loaded. The same procedure works well if I switch lightdm to gdm3.

Anyway, there is some idea to load some script lines at the session startup? The file .bash_profile neither works. I don't want to use ~/.bashrc because it would load every time I open a terminal. Neither to use init.d because it would load for all users.

View 4 Replies View Related

General :: A Script For Deleting User , If He Has No Login Shell?

Nov 25, 2010

I want to create a script to delete user if he has no login shell.

View 4 Replies View Related

CentOS 5 :: Gnome-login Configuration - Restore User Profile?

Nov 20, 2009

Last night I started my computer and loaded my CentOS 5.2 partition (Windows 7 on the other partition). I was able to login to my account, but was given a gnome error that the panel buttons (i.e. weather, cpu monitor etc) could not be loaded. I then went to restart the computer (probably not the smartest thing to do) and was given some file errors upon shutdown that were related to /dev/VolGroup00/LogVol00. After restart I was taken to a shell and ran fsck manually. It seemed to find a lot of bad blocks, so I repaired the /dev/VolGroup00 system and restarted. At this point CentOS seemed to boot normally, but upon loading of the login screen I get the error: Configuration not correct The configuration file contains an invalid command line for the login dialog, so running the default command. Please fix your configuration.

I cannot even log in as root. I get the error /usr/bin/gnome-session: error while loading shared libraries: libgnome-desktop-2.so.2: cannot open shared objects file: no such file or directory. I then went to a shell and ran: sudo yum install libgnome-desktop-2.so.2, but the package was already installed and up to date, so there was nothing to do. I am therefore stuck at this login screen with pull-down menus and tabs where I can change the configuration, add/remove users etc. So, my question is this: How do I restore my user profile so I can login....and if anyone has some insight, what caused this to happen in the first place? I should also mention, this all happened after plugging the computer into a new internet connection. No clue if that's even relevant.

View 11 Replies View Related

General :: Shell Script To Automatically Login Through Ssh And Create User?

Oct 20, 2010

I was trying to create a shell script which will automatically login to the server 192.168.1.7 and checks if a user exists there or not, if it doesn't exist then it should create the user.I have very little idea about shell scriptThis is what I tried:Quote:

#!/bin/bash
pass="sacharje"
ssh 192.168.1.7

Now, how to pass that password automatically to the ssh when it asks for the password? (I can't use public key authentication here)

View 10 Replies View Related

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 :: Write A Shell Script That Allows Only User 1 And User 2 To Execute A Program?

Feb 25, 2010

I've looked everywhere but I can't find where to change the default box for incoming mail, or am I on the wrong track. It's a nuisance having to change folders and I can't configure wastebin to empty on exit.And I can't get kmail to import from evolution. Do I have to go to the evolution storage and do it manually, and if so, how do I do that?

View 1 Replies View Related

Fedora Installation :: F13 To F14 No Shell At Login / After Upgrading Cant Login On User?

Jun 3, 2011

yesterday I updated my fedora 13 to fedora 14 (on laptop) and today i cannot log in on user. It just go blank for a sec and is back to login.

At text console (alt+ctr+f2/f3) i enter my username and pass it give this for a sec and resets (clean) console
username: Name
password:
last used: [date]
login: no shell permission denied

i used unetbootin (fedora 14 netinstall to update) and later i updated 1,5G before reboot (did update that fix, forgot its name tho :s)

I would most likely reinstall everything, but i have some work at laptop and as death-line is near, i would prefer to fix it if possible.

edited:
i have installed F13 on unused space, is there a way for me to access and fix it? or at least get some files from there?

View 1 Replies View Related

General :: Add A Role And Profile To New User?

Sep 3, 2010

How to add a new role and profile for new user by using the command "useradd" in linux.In solaris there is an options(useradd -R and useradd -P) for these actions, like this how to add role and profile for new user in linux.

View 3 Replies View Related

Ubuntu :: Login - Load Up Without Typing In User Name Or Password

Jan 26, 2010

I accedently typed in a command in the terminal that made my computer load up without typing in user name or password. i would love you have that back. is there a command that you can use to get back there login screen. i am using ubuntu 9.10. i also dont know what the command was that i typed...

View 1 Replies View Related

Ubuntu :: Broken Path To User Shell - Can't Complete Login

Jun 9, 2011

I inadvertently typed the wrong path when changing my user login shell and now every time I log in I get a message stating that it can't find the shell and boots me off the system. It will then redisplay the login prompt. I'm running Ubuntu Server x64 in VMware Workstation.

View 1 Replies View Related

Slackware :: VSFTPD User Versus Login Shell Definition

Jul 18, 2011

I'm using VSFTPD on my office LAN for one simple task: to receive-and send - installation images created with Ghost4Linux. Until recently, my main LAN server ran on CentOS, but I decided to migrate it to Slackware (nicer release policy ).

What I usually do is create an 'install' user who can login to FTP, but not on the system. Here's an example of what I used to do on my CentOS setup:

Code:

# mkdir -p -m 0700 /home/ftp/install
# groupadd install
# useradd -d /home/ftp/install -g install -s /sbin/nologin install
# chown -R install:install /home/ftp/install
# passwd install

The relevant bits in vsftpd.conf looked like this on the CentOS server:

Code:

...
anonymous_enable=NO
...
userlist_enable=YES
userlist_deny=NO
userlist_file=/etc/vsftpd/user_list
...

Then I only had to create the /etc/vsftpd/user_list file and put a single line in it to allow the newly created user:

Code:

install Now I've tried to get the same behaviour on Slackware, and I succeeded more or less, except for one thing. There's no way my 'install' user can login to FTP when his default shell is set to '/sbin/nologin' (or '/bin/false'). Only when I change the 'install' users' default shell to a "real" shell like '/bin/bash', he's able to login.

Here's a little practical demonstration of what's happening:

Code:

$ lftp localhost
lftp localhost:~> user install
Mot de passe :

[code]...

View 1 Replies View Related

OpenSUSE :: Cron Doesn't Load User Path Variable

Oct 15, 2010

I set up some scripts n crontab and I found that the scripts are failing because cron seems not to load my user PATH variable. Is there any way to tell cron to load my PATH variable?

View 2 Replies View Related

General :: $HOME/.bashrc Disabled When User Shell Is 'rbash' (restricted Shell)?

Jun 15, 2011

MACHINE: HP Proliant DL260G5OS: SLES 11 SP1kernel: Linux xserver 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/LinuxIt is used as remote xserver in a LAN.I have configured /usr/lib/restricted/bin/.rbashrc with some environment variables but when the users logon in the system finally is executed $HOME/.bashrc and some environment vars are overwritten.

View 2 Replies View Related

Fedora :: Ssh Public Key Login Doesn't Work As Root User

Dec 22, 2010

I've tried to ssh in as the root user w/o a password (RSA keys) but I've had no luck as the root user. I've tried the exact same commands with Debian 5 and Centos 5.5, without a problem. Fedora 13 and 14 won't work! I can only log in w/o a password as a normal user, never as the root user! It always asks for the password if I try as root. I've even tried copying Debian's and Centos's sshd_config file and restarting sshd, but it still won't work.

Code:

mkdir ~/.ssh ~username/.ssh
chmod 0700 ~/.ssh ~username/.ssh
echo "ssh-rsa AAAAB............Jw8V03loeZ username@thehostname" > ~/.ssh/authorized_keys

[code]....

View 6 Replies View Related

Security :: Doesn't Access Root Passward From User Login

Nov 26, 2009

I get the problem to acess root password when i am in user login, means wahen i am in user login and want to install software from terminal then he asked root password, when i supplied root password but he give me login incorrect.

View 2 Replies View Related

Ubuntu :: Can Use Same User Profile Between GNOME And KDE?

Jul 7, 2010

I've been using Ubuntu with GNOME for the past few years and I'm looking at possibly switching to the KDE-based Kubuntu. I know I can have both DE's on my system and even found a tutorial on the Psychocats site for setting it up, but I have a question for the KDE gurus here. Can I safely use the same user profile between both GNOME and KDE or should I set up a new user for working in KDE? I haven't seen anything saying I can't but I really don't want to hose my GNOME settings in case I end up not liking KDE enough to use it on a daily basis.

View 9 Replies View Related

Red Hat / Fedora :: How To Add Profile Of User To Samba PDC

Aug 26, 2010

I am just started to setting up a samba PDC at our office.MY problem is my xp client is logging in to server but not loading the profile.its booting with tmp profile and whatever the changes I do in that profile.its not updating that in the server. And my client.log file is showing following error. '/home/user4' does not exist or permission denied when connecting to [user4] Error was Permission denied. I gave full right to /home/user4.But still its giving this error. User4 is given same password for linux and samba. How can I add a profile of user to smb pdc?

RHEL 5.0
Samba version is 3

View 1 Replies View Related

General :: How To Add User So That They Have No Shell Access?

Feb 18, 2010

Im want to know the command to add a user with no shell access so they cannot log onto the system, but there a user on there so for example they can be part of the email server.

View 2 Replies View Related

General :: How To Run Program As User With No Shell

May 27, 2010

I have a program I want to run as it's own user. But I don't want anyone to be able to login as that user, so I created a user like: -

useradd -s /sbin/nologin someuser

How do I run a specific program owned by this user as this user? I can't su to this user as it doesn't have a shell.

View 15 Replies View Related

Ubuntu :: No Sound - Affecting One User Profile?

Mar 20, 2010

I appear to be experiencing an annoying issue with my soundcard. As you can see from the images below, the soundcard is detected, but not when it comes to the "output". This is only affecting one user (my admin account is fine, as was a new user set up to test it).

I've looked at this page and have attempted reinstalling alsa, but to no success.

The results from aplay -l are:

Quote:

**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: ALC883 Analog [ALC883 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0

[Code]....

"stevek" being the user that I'm having difficulty with. I suspect that I might need to recreate part of my user profile, but I'm not sure where start.

View 1 Replies View Related

Ubuntu :: How To Remove Certain Stuff On User Profile

Jul 25, 2011

Setting up a small network for a private school. have ubuntu on the systems, but wanting to make user profiles that anyone can access and have admin profile that only I can access. that part was easy, but am trying to find out how on the all user profile I can block certain things out like media players and etc. I figured out how to hide them in the task bar but anyone with a little tinkering could find them. Anyway to remove certain things completely on all user prof>? How to Remove.

View 1 Replies View Related

General :: Send Message To Other User In Shell?

Jun 22, 2009

how can i send message to other user in shelli try use write before but it say permission deny from user

View 2 Replies View Related

General :: Unabel To Switch User Shell?

Mar 17, 2011

I have a big problem here.I have 2 shell windows, ne is a root shell and the other with some user account.If I change the root password in the root shell window aspasswd rootI can change it, but when I go into the user shell window, and I do "su" I cannot switch to root. Always "incorrect password".Same happen if I try to do "su <some-other-user>"This happen ONLY in shell windowws. If I try, for example, to run some administration service, like system-config-service, the root password is accepted in the prompting window.

View 6 Replies View Related

OpenSUSE Install :: Default Setting Of User Profile?

May 22, 2010

This is the first time I am using forum. I am using SUSE 11.0 I dont know which settings I made but for one of the user I am not able to see the blue bar which has minimize, maximize, close bar.

I tried to replace .bashrc other related files by creating new user but the problem still exists.

Kindly help me to know what are the user profile related files and what might be the cause for this.

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

Ubuntu :: One User Cannot Login Via GDM - "reset" All (X, GDM Related) Permissions/settings Of One User?

Dec 11, 2010

Is it possible "reset" all (X, GDM related) permissions/settings of one user? What would cause one specific user not to be able to log into anything via gdm/the login screen? After providing the proper password, the screen goes black and then jumps back to the login screen. No session alternative works, not even xterm or gnome failsafe. I can however log in via the console (Ctrl+Alt+F6, recovery etc). With another user I can log in via GDM just fine, and deleting and re-adding the "broken" user doesn't make any difference.

Some (maybe) relevent logs:

part of syslog:

Quote:

Dec 12 01:20:58 <specific user> pulseaudio[1358]: core-util.c: Home directory /etc/timidity not ours.
Dec 12 01:20:58 <specific user> pulseaudio[1358]: lock-autospawn.c: Cannot access autospawn lock.

[code]....

View 2 Replies View Related







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