04-03-2019
That you can run sudo -n true doesn't always mean you're root. Sometimes it just means you ran sudo recently enough it isn't asking for your password again. Check if UID is 0 too.
This User Gave Thanks to Corona688 For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
When I execute a command on Unix and it says 'Permission denied'. What could be the reason and how can it be resolved?
Many thanks,
David (2 Replies)
Discussion started by: david_wang
2 Replies
2. Shell Programming and Scripting
Hi All,
I have two servers, say server1 and server2.
I have put the entries of both servers in /.rhosts file of both servers.
So, when I tried to run following from server1-
rsh server2 "ls"
Permission denied was printed on console.
Can anyone help me out?
Regards,
akash mahakode (4 Replies)
Discussion started by: akash_mahakode
4 Replies
3. Shell Programming and Scripting
Hi Gurus,
I am new to scripting and needs your help in expect script used for telnet. I wrote a simple script as
#!/usr/bin/expect-5.43 -f
spawn telnet localhost 2233
expect "password:"
send "secret\r"
send "i data.cnbc.com\r"
send "exit\r"
expect eof
When I am trying to execute... (2 Replies)
Discussion started by: niks_yv
2 Replies
4. UNIX for Dummies Questions & Answers
HI All,
I am using solaris
i created a user adam and updated his permissions
in vi sudoers file as follows
adam ALL=(ALL) NOPASSWORD: ALL
...........
when i create user by logging as sudo user .
$ sudo useradd -d /home/kalyan -m -s /bin/sh kalyan
sudo: not found
... (6 Replies)
Discussion started by: kalyankalyan
6 Replies
5. UNIX for Dummies Questions & Answers
Hello,
I have a problem creating files in a certain folder. I installed apache and mysql today, using this guide:
http://computerfaq.be/ubuntu-apache-mysql-php-server-installeren/
(can't post links yet :( )
Instead of /home/www/html I used /home/www/ for the document root.
Now I... (12 Replies)
Discussion started by: emveedee
12 Replies
6. UNIX for Dummies Questions & Answers
I'm sure this question comes up a lot, but I'm particularly confused in this situation.
I can run my program once, just fine. However, if I try to run it again without recompiling, bash refuses to give me permission. I have a small idea why, but I don't think think I'm right.
Here's what I'm... (1 Reply)
Discussion started by: statichazard
1 Replies
7. Shell Programming and Scripting
I have a script that writes another script with
cat >/usr/local/bin/myscript.sh <<EOF
#!/bin/sh
VAR=`run a command here`
EOF
Problem is, after this is run, I get:
$ cat /usr/local/bin/myscript.sh
#!/bin/sh
VAR=result of command
How do I stop that from happening with Macs... (2 Replies)
Discussion started by: jnojr
2 Replies
8. UNIX for Dummies Questions & Answers
my file permissions are -rwxrwxrwx for runInstall file
and while giving " sudo bash runInstall.sh " then i am getting error " permission denied"
now i don't see any reasonable answer for that please suggest what should i do?
:eek:
got to start DBConnection practice with oracle database and... (4 Replies)
Discussion started by: toshanshu
4 Replies
9. Shell Programming and Scripting
Hi
Am having file.ksh as below
wc -l file1.txt
wc -l file2.txt
wc -l file3.txt
wc -l file4.txt
i want all the commands in this file to execute in same time
please help
Thanks in advance (1 Reply)
Discussion started by: ragu.selvaraj
1 Replies
10. Solaris
Hi All,
i have two accounts with acl permissions. I need to provide read access to both users. for one user s109552
"cd" is not working.
drwxrws---+ 8 cvsadmin reto 1024 Aug 23 2011 reto
su5sr117# su - s109553
$ bash
bash-3.2$ cd /rep/reto
bash-3.2$ pwd <-------- it... (2 Replies)
Discussion started by: Naveen.6025
2 Replies
LIBBASH(7) libbash Manual LIBBASH(7)
NAME
libbash -- A bash shared libraries package.
DESCRIPTION
libbash is a package that enables bash dynamic-like shared libraries. Actually its a tool for managing bash scripts whose functions you may
want to load and use in scripts of your own.
It contains a 'dynamic loader' for the shared libraries ( ldbash(1)), a configuration tool (ldbashconfig(8)), and some libraries.
Using ldbash(1) you are able to load loadable bash libraries, such as getopts(1) and hashstash(1). A bash shared library that can be loaded
using
ldbash(1) must answer 4 requirments:
1. It must be installed in $LIBBASH_PREFIX/lib/bash (default is /usr/lib/bash).
2. It must contain a line that begins with '#EXPORT='. That line will contain (after the '=') a list of functions that the library
exports. I.e. all the function that will be usable after loading that library will be listed in that line.
3. It must contain a line that begins with '#REQUIRE='. That line will contain (after the '=') a list of bash libraries that are
required for our library. I.e. every bash library that is in use in our bash library must be listed there.
4. The library must be listed (For more information, see ldbashconfig(8)).
Basic guidelines for writing library of your own:
1. Be aware, that your library will be actually sourced. So, basically, it should contain (i.e define) only functions.
2. Try to declare all variables intended for internal use as local.
3. Global variables and functions that are intended for internal use (i.e are not defined in '#EXPORT=') should begin with:
__<library_name>_
For example, internal function myfoosort of hashstash library should be named as
__hashstash_myfoosort
This helps to avoid conflicts in global name space when using libraries that come from different vendors.
4. See html manual for full version of this guide.
AUTHORS
Hai Zaar <haizaar@haizaar.com>
Gil Ran <ril@ran4.net>
SEE ALSO
ldbash(1), ldbashconfig(8), getopts(1), hashstash(1) colors(1) messages(1) urlcoding(1) locks(1)
Linux Epoch Linux