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


ADVERTISEMENT

General :: Write A Shell Script Which Will Read The Directory Path As Input From User?

Nov 28, 2010

I am new to writing shell scripts. So, please bare with me. I am currently trying to write a shell script which will read the directory path as input from user and will traverse the Dir tree to find all available audio and video files. I have tried to write as much as I could but I don't know where I am making mistake as I get some files to be audio file which are actully tar balls. On the second note there are some files which video but script shows them to be audio. And, some video files are completely skipped. I am giving the shell script below so that you can see. I am using two external files as source which I am attaching.

Code:

#!/bin/bash
#Let's load the extensions that we want to search for
vdExt=$(cat vdExtList)
adExt=$(cat adExtList)

[code]....

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

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 :: 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

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

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

General :: Auto Complete The Path Right??

May 26, 2011

complete cd 'p/l/d/'
complete mkdir 'p/l/d/'
complete rmdir 'p/l/d/'

[code]....

View 2 Replies View Related

Slackware :: Push The Backspace To Continue To Complete The Path?

Apr 9, 2011

has anyone the same problem with bash in -current? Everytime I use the commandline completition with TAB , it adds me a space, so I always need to push the backspace to continue to complete the path.So the whole thng get's a bit unuseable.I'm using bash-4.1.010-486-1 and bash-completition-1.3-noarch

View 4 Replies View Related

Fedora :: Yum-complete-transaction Broken ?

Mar 20, 2009

[axet@axet-laptop ~]$ sudo yum-complete-transaction

Loaded plugins: refresh-packagekit

There are 1 outstanding transactions to complete. Finishing the most recent one

The remaining transaction had 130 elements left to run

Not removing old transaction files

View 14 Replies View Related

Ubuntu :: Broken Path To External HDD In Dolphin?

Dec 11, 2010

I did a backup to an external drive without mounting it so it crammed my root partition to the brim. No worries, some kind soul on here helped me out of that pickle by pointing me to where that partial backup ended up.

However Dolphin now mounts my external as "John Doe 500gb -1." "John Doe 500gb" still exists in Dolphin and I cannot find a way to blow it out so my backup paths are inaccurate as they are not looking for the "-1." Consequently Luckybackup just dumps the backup right back into the root again.

To resuscitate my root partition, I was able to delete files from inside the "JD 500gb" but I cannot delete directories or the whole thing altogether. I tried going into system settings and "forget" it as a drive but that was not the right animal for the job as it doesn't clear Dolphin. I guess I could just rename the drive and make new backup paths but I'd like to learn how to fix the problem instead of a workaround. I did search the net and this forum because I figured it was a common question but couldn't find the right search parameters to get an answer.

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

Ubuntu :: Change The Complete Appearance Of The Login In 11.04?

Jul 3, 2011

changing the style, box, everything in the login screen. I know how to change the login background. changing the entire style of its appearance or like installing a theme for the login screen.

View 2 Replies View Related

General :: Unable To Setup PATH Using Shell Script?

Feb 14, 2011

I am creating one bash script name as pathsetup.sh.

In that , I am trying to setup a path to my user profile. S my script content is as follows,

pathsetup.sh contains,
#!/bin/bash
MY_PATH=/home/arun/NS3/ns-3.9/build
export PATH=$PATH:$MY_PATH
echo "$PATH"

If I run the script, when run time it shows the MY_PATH added to PATH.

But, when I check it in terminal after run, it doesn't add the PATH.

if I put echo $PATH in terminal, it show old path.

How can I add path permanently to a user.

I read, ~.bash_profile , we can add the path permanently for a user.

But, I want to add MY_PATH for a specific time. I don't want any user change the file .bash_profile each time.

Just running the pathsetup.sh script, MY_PATH should be added to the user PATH.

Instead of .bash_profile, using shell script, can it possible to add path permenetly for a user.

View 2 Replies View Related

Red Hat :: Broken Shell / Resolve This?

Jan 21, 2011

How to solve broken shell problem

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

OpenSUSE Install :: Installing 11.3 - Complete Lockup On KDE Login?

Jul 16, 2010

I have been running 11.2 32bit on my IBM T43 laptop without issue. Tonight I downloaded 11.3 32bit and installed to HDD. On reboot into new system laptop has complete freeze. Can not do anything but power off to reboot. I also found the same situation if I try to run KDE live off the cd. Oh yes, I downloaded the openSUSE 11.3 KDE Live CD version.

So here is what I found. On bootup (either HDD install or Live CD desktop) I will goto to tty1 or tty4 to see the boot up process messages. And it get right up to the login prompt without issue. If I then switch back to tty7 (the normal bootup display) after a few seconds the screen and laptop itself completely lockup (freeze). So I power off to reboot.

this time I boot up in tty1 again until login prompt but this time I type root to login. Then I switch to tty7 and now I can see the desktop. I goto the menu to search and load up Kinfocenter but then its freezes again.

So its very frustrating as I can not use this new version of openSUSE on my laptop. It just keeps freezing. Whats worse is I cant see any logs or screen message in tty1 because once it starts to login to desktop it freezes. So I am not even sure how to troubleshoot any further what the issue is. I assume its KDE4 or XOrg server.

View 9 Replies View Related

General :: Shell Script - Use Variable In A For Loop With Directory Path?

Jan 19, 2011

I modified files in several directories, and need to run a diff on the backup I created before modifying the file.

I'm trying to compose a simple shell script to speed up the task, but getting a syntax error.

Here is what I have:

for i in DIR1 DIR2 DIR3 DIR4 DIR5 do;
diff /maindir/subdir/subdir/$i/filename.txt.old /maindir/subdir/subdir/$i/filename.txt;
done

I know the paths are valid, and if I run just the diff command with the actual DIR1 instead of $i it works.

View 2 Replies View Related

General :: Executing Shell Script - Setting Permissions And Providing Path

Jan 4, 2011

I've been looking around the net for executing a shell script. My basic understanding is that after setting executable permissions and providing a path (#!/bin/sh) in the first line of the script, I can type ./myscript to execute instead of sh myscript. This is not working for me. I can run "sh myscript" but not "./myscript" even though I know for sure I have across the board execute permission and my sh path is correct. I'm working on a redhat linux station.

View 6 Replies View Related

General :: Command Line - Get Relative Path From Two Absolute Paths In Shell?

May 13, 2010

We have two paths. First one is directory, second either dir or file.

/a/b/c and /a/d/e.txt

Relative path from first path to second will be: ../../d/e.txt

How to get it in linux terminal?

PS: For those who ask "what is use case?" - creating lots of relative symlinks (just as an example)

View 1 Replies View Related

General :: Shell Script Is Defined In Someother Directory - How It Is Being Invoked With Path

May 30, 2011

extract.ksh use this scripts topic_file_publish.sh but extract.ksh resides in /data/apps/pnbos/scripts

but topic_file_publish.sh in below directory/data/apps/pnbgstk/publication >

ls topic_file_publish.sh topic_file_publish.sh fraespappp8:/data/apps > type topic_file_publish.sh topic_file_publish.sh is hashed (/data/apps/pnbgstk/publication/topic_file_publish.sh)

How it is done?

since topic_file_publish.sh is being directly referenced in the code with absolute path.

View 2 Replies View Related

Fedora :: GTK2 Theme Broken In Gnome Shell / What To Do?

Jun 6, 2011

I am trying to theme my Gnome Shell experience, and I have little complaints for the Shell Theme/GTK3 side of things. However, even though there are GTK2 files included in the packages, my GTK2 apps are theme-wise broken. The colors are not on par and the buttons are not round as the theme should say, as it's still supposed to work since the files are provided.

View 1 Replies View Related

General :: Diffrence Between Login And Non Login Shell?

Feb 17, 2010

diffrence between login and non login shell. What does it mean by user enviorment.

View 3 Replies View Related

Ubuntu :: How To Set Python Path For Root User

Aug 11, 2010

How do I set the PYTHONPATH for the root user only? Or at least add to the python path for the root user? I need to read from the /var/log/apache2/access.log in my python script, so I need to use sudo for my script to be able to read from it.I tried setting the PYTHONPATH in /root/.bashrc but that didn't work. I don't want to use a .pth file because I don't want the directory to be on the path for all users due to import collisions.

View 6 Replies View Related

General :: Write Shell Script That Takes A File Path As Command-line Arguments?

Dec 14, 2010

How can i write a shell script that takes a file path as command-line arguments.and it should report whether the path denotes a file or a directory.

View 2 Replies View Related

Programming :: Writing Unix Shell Script To Pass File Name/path/creation Date?

Oct 7, 2009

I'm new to UNIX scripting; I�m stuck with the following I have an Oracle SQL script that takes three parameters

1- File Name
2- File Path
3- File creation date

Under UNIX I have a folder where files will be placed frequently and I need to upload those files to Oracle, what I need is a UNIX script that can do the following

Loop through Directory "/home/applmgr/snktmp"
Picks only files
Pass the file name to parameter &1

[code]....

Is the above possible? I already knows how to call the Oracle Script from UNIX Im only stuck on writing the UNIX part where it List the files attribute(name,path,date) and store them to parameters ,Looping until the last file in the directory If the above is not possible,then how can I create the below from the command line

Filename{concatenation Mark}filePath{concatenation Mark}creationdate
Filename{concatenation Mark}filePath{concatenation Mark}creationdate
Filename{concatenation Mark}filePath{concatenation Mark}creationdate
Filename{concatenation Mark}filePath{concatenation Mark}creationdate

View 4 Replies View Related

Ubuntu :: Bash Script, Take User Input Then Use It As A Path?

Jan 29, 2011

I'm trying to make a script to make it quicker to encode videos.

Code:
#!/bin/bash
echo "Type the path of the video file"

[code]....

View 9 Replies View Related

Debian :: Alter The User's Environment Path?

Feb 2, 2011

what the correct way is to add '/sbin' to my users environment path which is not present when I run the command 'env'?

Code:

carlos@db1:~$ env
TERM=xterm
SHELL=/bin/bash
SSH_CLIENT=192.168.1.115 35495 22
SSH_TTY=/dev/pts/0

[code].....

I would like to add /sbin to all future user's I create with 'useradd' and including my already existing user account above. Can someone tell me the correct way in Debian to change my current user environment to have /sbin in their path as well as how to add this for all future users? I looked at /etc/profiile and there are two lines that look relivant:

Code:

if [ "`id -u`" -eq 0 ]; then
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
else

[code]....

I'm guessing the 2nd PATH line is for users and the 1st one is for root, right?

View 3 Replies View Related

Ubuntu Security :: Bad Login Protocols - Graphical Login For Gnome Sizes Itself To Accommodate A User's Exact Password Length

Dec 14, 2010

I'm seeing really bad user login format under a standard installation and am wondering why ubuntu does this as default. I have noticed that the graphical login for gnome sizes itself to accommodate a user's exact password length. This indicates to me that somewhere on the unencrypted part of a standard installation with user encryption contains at least some indication of the content of the password length which seems a security flaw even if not a complete hole, it majorly reduces the number of attempts a cracker would have to cycle through.

And that's assuming that *only* the length is contained. Furthermore it seems that it would be MUCH better to simply display the number of characters entered into the pw field and allowing the gui to expand itself from an fixed size as the field is filled out so the the user still receives visual feedback for entering characters. Either a simple character count display should be entered into the field or a 10 dot to new line so that one can visually quickly count the number enter by multiplying from a 10base graphical observation.

View 9 Replies View Related

OpenSUSE :: Checking For Javah In User's PATH... Not Found?

Jun 26, 2010

I try to install some scientific software from source and get the following warning, when I run ./configure:
...

checking for javah in user's PATH... not found
checking for javah in known locations... not found
configure: WARNING: Invalid JNI include dir, exit!

[code]....

View 5 Replies View Related







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