Slackware :: Getting Aliases To Work As Root?

Aug 22, 2010

How can I get aliases working as root? Here is my Slackware 13.1's /etc/profile file followed by my *Slackware 11's* /etc/profile file [as a comparison]. My Slackware 11's root aliases work in addition to my username ones *without* needing a separate .bashrc in my home dir. In S13.1 I have created a .bashrc for my username and it works fine, but I want those same aliases operating when I'm root, and cannot for the life of me figure how to achieve it.

S13.1 /etc/profile:
# /etc/profile: This file contains system-wide defaults used by
# all Bourne (and related) shells.
# Set the values for some environment variables:
export MINICOM="-c on"
export MANPATH=/usr/local/man:/usr/man
export HOSTNAME="`cat /etc/HOSTNAME`"
export LESSOPEN="|lesspipe.sh %s"
export LESS="-M"
# If the user doesn't have a .inputrc, use the one in /etc.....

View 15 Replies


ADVERTISEMENT

OpenSUSE :: Bash Aliases For Root - Where They Are Defined

Sep 26, 2010

Output of my #alias command looks just as normal as one would expect:
Code:
alias +='pushd .'
alias -='popd'
alias ..='cd ..'
alias ...='cd ../..' .....

And still whenever I (as root) type in bash
#ll
which would be short for
#ls- l
i get output of the command
#ls -al

So where aliases for root overwritten? Usually I would expect .bashrc in the /root directory. Or at least .alias file. But there none of those in my current /root. So, my question is where root user gets it's aliases from? This concerns only root user. Normal user has .bashrc and I made up my own aliases in .alias and that's works jut fine. And yes I could make .bashrc file in the /root and .aliases where I would define my own things.

View 4 Replies View Related

Slackware :: Fetchmail - Sendmail - Aliases ?

Sep 8, 2010

Fetchmail +sendmail played nice together, until I installed hylafax, and added an alias it requires. I just ran the usual makemap command on aliases to make aliases.db, and that's there the trouble began. Fetchmail appeared to hang, at any email account that had email in it, at the RCPT stage. I finally read the warning at the top of /etc/mail/aliases that says to run newaliases.

View 1 Replies View Related

Slackware :: Kde Konsole And Aliases Not Working

Jul 18, 2010

I am running KDE and currently using Konsole as my terminal emulator. I am finding that if I start a konsole from the menu list I can type alias and see a list of default aliases plus the ones I have define in my .bash_login file.

The problem seems to occur on restarting KDE. I generally leave everything open and when KDE restarts everything comes back. Saves me having to do it myself.

Unfortunately when the konsoles pop up they no longer have the aliases. There will be none of the predefined ones, nor the ones that I have defined.

Would I be better off using a more standard alternative like xterm in this case or is this something that has a simple explanation?

I suspect it has something to do with not being a login shell. If I look at the Profile in the menu for the konsole it specifically says "/bin/bash -l" for the command on the new one that I opened up, but "/bin/bash" for the one that was automatically brought back.

Is there some reason KDE would do this? Running Slackware 13.1 64 bit. KDE 4.4.3

View 4 Replies View Related

Software :: Aliases - Using /etc/aliases - Does Not Get Routed To My Email

Apr 1, 2009

I am able to send a mail message to myself from a server without any problem...

But after I have updated /etc/aliases and added the line for all of root's mail to be routed to me....

Added:
root: myemail@company.com

and ran newaliases to implement it....

If I send a mail message to root, it does not get routed to my email...

View 3 Replies View Related

Slackware :: 13.37 KDE Desktop Effects Only Work For Root?

Apr 29, 2011

I just got Slackware 13.37 up and running and all is well except for the KDE Desktop Effects. If I log in as root, they're enabled and work fine. However, when I log in as a user they are disabled and the option to enable them is greyed out.Other OpenGL programs run fine as a user, such as the glxgears test program and OpenGL screensavers.ATI card running this driver:It must be some kind of permission issue but I'm not really sure where to look.

View 1 Replies View Related

Software :: Apache - Make Aliases To Folders Outside Of Main Document Root - Access Forbidden

Jun 9, 2009

I am on mac os x and whenever I make aliases in my apache config file to point to folders outside of main web document root folder, I get access forbidden. I have chmod -R 777 the whole destination directory (to test it) and still no go. Access forbidden. I have also tried pointing directly to [URL].

View 1 Replies View Related

General :: VI Command Mode - Aliases Only Work In RHEL4

Jul 1, 2009

When in command mode one can come out of the file temporarily by Code: :sh in command mode. When I find myself on the shell on RH 9 the aliases dont work but in RHEL 4 all aliases work like charm. Does anyone know why is it so?

View 4 Replies View Related

General :: Aliases Work After Running Sudo SU Command?

May 7, 2010

I can make aliases fine by editing the .bashrc file in my home directory, but the first thing I do when I open a terminal window is sudo su so I don't have to type sudo in front of every command. The problem is, I am then not able to use my aliases. How can I make aliases that work after I run the sudo su command?

View 2 Replies View Related

OpenSUSE Install :: Revert The Changes Or Change The Permissions Again To Root:root Or Make Sudo Work

Aug 10, 2011

Accidentally I changed the ownership of all the directories under / to my own instead of root:root. Now I am unable to use sudo and many bad things are happening. Is there a way to revert the changes or change the permissions again to root:root or make sudo work ?

View 3 Replies View Related

Slackware :: Get Rtsp:// In Firefox To Work \ (adding Entries In :config Does Not Work)?

Feb 2, 2010

I have followed the instructions at http://www.vcn.bc.ca/~dugan/setting-up-slackware.html (under "Making Firefox Perfect"), but I still get the error message"Firefox doesn't know how to open this address, because the protocol (rtsp) isn't associated with any program."

View 13 Replies View Related

Slackware :: Alienware Aurora & Slackware 13 - Will It Work?

Jan 12, 2010

I recently ordered the Alienware Aurora from Dell and upgraded the video card to the Nvidia GeForce GTX 295 as I noticed that Nvidia offers a 32-bit driver for download.

Then I noticed that the system comes with Windows 7 64-bit so I am assuming that this is a 64-bit system.

My bottom line question is will I have to install Slackware 13 (64 bit) or will I have to stick with the 32-bit version since the Nvidia driver is compiled for 32-bit? This is a gaming machine so obviously I want to be able to realize the full potential of the video card.

If I have a choice, what are the pros and cons? I DO NOT want Windows so I'll be disappointed if I can't install Linux!

Below is my order list from Dell:

Code:

View 11 Replies View Related

Slackware :: Can't Get My Wireless Network Work In Slackware 13.0 / Why Is So?

Jun 5, 2010

I do have trouble in configuring my wireless network,though i configured it as what Alien BOB say(http://alien.slackbook.org/dokuwiki/...ckware:network) and google some similar Threads.My latop is Asus F83vf, wireless card is Atheros AR9285 Wireless Network Adapter.
The code when I run lspci command is code...

View 11 Replies View Related

Slackware :: 13 No Sound Except For Root

Feb 20, 2010

Today I installed Slackware 13 because of some issues I'd been having with slackware 9, which I'd gradually updated, but apparently not perfectly, hence the clean install of ver 13. Anyways, I have no sound. At first I thought I had no sound at all, but then I found out that audio does work for root. When I try to run alsamixer as a non-root user, I get this error:

Code: alsamixer: function snd_ctl_open failed for default: No such file or directory Now if I run it as root though, it works just fine. If I run the KDE system settings thing, what I guess is their version of the windows control panel, and I go to the multimedia section, I can see my card, but if I click test, it says that it's failed and that it's "reverting back to ." or something to that effect.(I'm in fluxbox right now). I would imagine that there's something I need to do with respect to modifying permissions, but I really don't know what that is that I'm supposed to do.

View 5 Replies View Related

Slackware :: Can't Run Java As Root

Apr 7, 2010

I can't run the "java" command as root, but I can, as a simple user.

View 2 Replies View Related

Debian :: Aliases For Apt With Autocompletion?

Feb 10, 2011

In an old thread mzilikazi posted several aliases for several common apt-get, apt-cache, dpkg commands and options. I thought this was a great idea and adopted my own list. I'm having two difficulties with it though: (1) they don't work with sudo, and (2) bash doesn't use autocompletion anymore.

1. sudo I've placed the aliases in the .bashrc profiles of my user and of root, and logged back in. As root the aliases work. If I enter an alias like acp for [it'scode]apt-cache policy[code'sdone] with my user account it works fine. Sweet sudo, however, apparently doesn't support bash aliases. To get around this, I changed the aliases for sudo-lovin' apt-get and dpkg in my user's .bashrc from [code!]alias agi="apt-get install"[!edoc] to [code!]alias agi="sudo apt-get install"[nocode]. Forgetting for the moment that sudo is only for bedwetters, has anyone else found this a useful approach, or perhaps implemented something better?

2. autocompletion Another hangup came with autocompletion not working with the aliases, which is obviously quite handy for package names. A google I once knew told me a thing or two about that. I don't get down with funky-chunky foreign web scripts I can't interpret... which so far is all of them... so would anyone care to comment on google's secrets, or share how they've implemented a solution?

View 2 Replies View Related

Debian :: Add Some Aliases To System?

Sep 8, 2010

but I tried to resolve all forms and failed. Want to add some aliases to my system, I put the snippet below in my /etc/profile but nothing happened. Also tried to put in ~/.profile and ~/.bashrc but nothing worked.

What am I doing wrong?
## /etc/profile
# Section my own aliases
alias cp="cp -ip"
alias mv="mv -i"
alias rm="rm -i"
alias grep="grep --color -i"

View 5 Replies View Related

Fedora :: Where Are The Aliases Defined

Oct 15, 2009

Upon a fresh install of Fedora 11 (and as a Fedora n00b), I noticed there are several aliases defined for me.

Code:

$ alias
alias l.='ls -d .* --color=auto'
alias ll='ls -l --color=auto'
alias ls='ls --color=auto'

[code]...

files had these aliases. So where are they?

View 14 Replies View Related

Software :: Get The Menu To Use Aliases?

Aug 27, 2010

Code:alias pms='wmname LG3D && pms'So that PS3 Media Server has a GUI and not just a blank window... this works if run from terminal but not when typed in my menu... how can I get Awesome to use the alias? Using:Code:{ "PS3 Media Server", "wmname LG3D && pms" }doesn't work.

View 2 Replies View Related

Slackware :: Can't Launch Applications As Root?

May 18, 2010

When I try to run thunar,for example, as root i receive a :

Code:
bash-4.1# thunar
No protocol specified

[code]...

View 5 Replies View Related

Slackware :: Firefox 4 Opens As Root

Mar 27, 2011

I got the mozilla FF4, extracted, copied to /usr/lib/firefox, changed the old one to /usr/lib/firefox-3 (I had the 3.03 or something like it) Now,I just can make it work... but just as root! If I am in Konqueror, super user, and click over the firefox it opens Firefox 4, as root. If I open another X, as root, I just need to click the old firefox icon and it opens. As user, there is no way I compared the files from /usr/lib/firefox, the new ones with the old ones in /usr/lib/firefox-3, and the permissions are THE SAME. I even tried to replace the firefox and the run-mozilla.sh, the only difference is that then I can get the update window to appear, but it does nothing and just crash. I didn't touched the /usr/bin/firefox, since it just point to the /usr/lib, and in fact, since it is working as root, in user space and in root KDE,it is OK. I tries first,of course, to get a slack one, but at linuxpackages there is only the FF4 for the newest slacks.

View 12 Replies View Related

Slackware :: Unable To Mount Root FS

Apr 15, 2011

got a client which rebooted one of their slackware servers and would not come up.Server is stuck at Kernel panic - not syncing: VFS: unable to mount root FS.I have booted into a live cd and mounted hdd1 but have not been able to get any further.

View 11 Replies View Related

Slackware :: Set A Root Background Image?

Apr 4, 2011

I just switched to ion3, been playing around with different window managers. Loving tiled wms! With each wm I run into the same issue, how can I set a root desktop background image with Slackware 13.1

View 3 Replies View Related

Slackware :: Tell If Have 'garbage' In Root Partition?

Mar 7, 2011

My root partition /dev/sda1 is 24.41 GiB with 10.48 GiB used. How can I tell if I have inadvertently placed a bunch of garbage on this partition? Also, should I, and I use the term loosely, 'move' certain directories to my home partition /dev/sda3? (118.77 GiB with 3.14 GiB used)

Right now I believe that, rightly or wrongly, if I screw up my system, all I need to do is install my Clonezilla image back to /dev/sda1 and I will have a 'mostly' working system. If I 'move' anything out of /dev/sda1 to /dev/sda3, will this hold true? Or am I out to lunch on this assumption anyway?

View 14 Replies View Related

Slackware :: How Do I Specify Root Disk In Lilo

Jun 13, 2010

With the continued growth of SATA devices, I have really been having problems with my boot loader. In the old days, it was pretty easy to make sure that the IDE devices stayed put. However, now everything is an sd device. Specifying a root directory of /dev/sda1 in lilo is no longer a sure thing. If you have a USB device plugged in or an ESATA device, your sd devices are no longer guaranteed to stay put.In reading through the lilo documentation, it appears that you can specify root devices by UUID or even by LABEL.

View 10 Replies View Related

Slackware :: How To Run Dolphin / Konqueror As Root

Feb 25, 2010

I have been using KDE4 for some time now as a test and have noticed what at first seems to be a major omission. There is no way to run dolphin or konqueror as root. Old style KDE3 in SLackware 12 had the "root konqueror" option, (or whatever it was named in the KDE menus), but KDE4 doesn't have this. I tried adding a new menu itme in KDE4 to run dolphin as root but it had odd errors about "could not start process" and "could not to talk to klauncher" - it would not display any files from my directory. Konqueror had similar odd problems - something about klauncher and Dbus server. This is a pain as there are sometimes files I wish to move/delete which I need to be root to do and it would be nice to have a gui to do this.

Anyone got any quick ways (from KDE) of achieving this or setting up a KDE menu item to run a file manager (dolphin/konqueror) as root ? I don't always want to have to run "su -c mc" in a terminal to do admin stuff in the filesystem and I don't want to run KDE as root.

View 14 Replies View Related

Slackware :: Odd Root Login On Vtty

Jul 30, 2010

I often use the virtual ttys and as slackware doesn't by default enable vttys 8-12 I added these to inittab and I can now use CNTRL-ALT-(F8-12) to switch to them, now for the problem. On vtty 6 I can login as myself or root no problem but on vttys 8-12 when I try to login as root I just get "Login Incorrect" but if I login as myself there is no problem I can then su to root, I just can't login as root this is very frustrating as I tend to use the vttys to do admin work so have to be root

View 4 Replies View Related

Slackware :: Root Account Recovery

May 7, 2010

anyone knowledgeable could follow this thread? [URL]

View 1 Replies View Related

Slackware :: Session_mm_apache2handler0.sem In Root Directory

Mar 12, 2011

I installed Slackware 13.37 and when i configured the LAMP, I now have a file session_mm_apache2handler0.sem in root(/) directory. I searched in the internet and found this:

[URL]

any way to fix it here in 13.37?

View 9 Replies View Related

Slackware :: Making The Raid 0 As Root?

Mar 1, 2010

I have a Gigabyte P55-UD3 motherboard, I created a raid 0 array in the bios with the integrated gigabyte raid controller. can I install Slackware 64 on it, can I make it bootable, could I have multiple Operating Systems(Windows too)without each of them corrupting the partition table.If yes then how?(I would prefer not using extra bootdisk)

View 1 Replies View Related







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