LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   File Error And Using Root Correctly (https://www.linuxquestions.org/questions/linux-newbie-8/file-error-and-using-root-correctly-425168/)

jothi_bass2000 03-14-2006 06:59 AM

Hai all,
I ve removed the entry n this.

Penguin of Wonder 03-14-2006 08:16 AM

Quote:

Originally Posted by jothi_bass2000
Hai all,
I want to login as a superuser without knowing the password of it

Uhh, i'm pretty sure you can't do that. If you don't know your root password, your going to have to go in the hardway and change it.

jothi_bass2000 03-14-2006 11:32 PM

Quote:

Originally Posted by Penguin of Wonder
Uhh, i'm pretty sure you can't do that. If you don't know your root password, your going to have to go in the hardway and change it.



hai,
i ve removed this entry.

jothi_bass2000 03-15-2006 12:18 AM

Hai all,
I got a problem, i.e. when I unzip a zip file it is unzipped two files only, but it contains 10 files then it it showing like this ide0(3,3): write failed, user block limit reached.

filename: write error (disk full?). Continue? (y/n/^C)

Penguin of Wonder 03-15-2006 05:05 PM

Quote:

Originally Posted by jothi_bass2000
Hai all,
I got a problem, i.e. when I unzip a zip file it is unzipped two files only, but it contains 10 files then it it showing like this ide0(3,3): write failed, user block limit reached.

filename: write error (disk full?). Continue? (y/n/^C)

The error is telling you that the partition your trying to unzip the archive onto is full. Hence it only unzips two of ten files because it only has room to extract those two and nothing else. Clean up your partition or unzip it onto another.

XavierP 03-15-2006 05:17 PM

Moved: This thread is more suitable in Linux-Newbie and has been moved accordingly to help your thread/question get the exposure it deserves.

chrism01 03-15-2006 05:30 PM

To temporarily become root without root passwd, you need an entry in the sudo file that gives you
su
OR
su -

Note the diff:
su
logs you in as root, but with your orig user's env, so root only cmds will not be avail.
su -
(note the space between su & '-') logs you in as root WITH root's environment.

jothi_bass2000 04-20-2006 03:55 AM

Where the sudo will be available and what changes I 've to do
in that file.plse reply.

chrism01 04-20-2006 11:52 PM

Using sudo util, you login to root acct as expalined, but using your persoanl non-root passwd.
For full details see
man sudo
the file is /etc/sudoers

jothi_bass2000 04-21-2006 11:21 PM

Hello, the file /etc/sudoers has a read permission for root only, so I cant view it.

jothi_bass2000 06-01-2006 12:22 AM

Hai all,
I want to install a patch in my Linux server, so what should I do. I dont have admin account and install account.

regards,
Jothibass

jothi_bass2000 06-01-2006 03:46 AM

Hai,
In sudoers file below shown available where I ve to do the changes as root. I ve taken this file from another server in which I 've root permission but i asked for the another server which I dont know the root password. Plse tell
me what changes should i do from the below sudoers file content.

root ALL=(ALL) ALL
corview,sysadm ALL=NOPASSWD: /usr/bin/klpq, /usr/bin/printconf-gui, /sbin/netco
nf, /usr/bin/dateconfig, /usr/X11R6/bin/Xconfigurator, /usr/bin/killall, /home/c
orview/ricEMS/CMD/conf/config_escl_ip.pl, /sbin/route , /usr/local/bin/tog.sh, /
usr/local/bin/tciconf, /usr/local/bin/sttysettings, /usr/local/bin/updatemailcon
f, /usr/local/bin/nmsmail.pl, /usr/local/bin/mailsender.py, /usr/local/bin/NMSco
nfig-services, /usr/local/bin/CheckBadBlocks
remotebkp ALL=NOPASSWD: /usr/bin/cdrecord, /usr/bin/mkisofs, /usr/bin/eject
admin ALL=NOPASSWD: /usr/local/bin/cdrw.pl
admin ALL=NOPASSWD: /usr/local/bin/runcorpat

jothi_bass2000 06-12-2006 08:10 AM

Hai all,
I got a problem while logging in "/bin/login : error while
loading shared libraries:libscript.so.1:cannot open shared object file : Error 23" . And also a error while switching between database The error is shown below
"connectDBStart() -- socket() failed: errno=23
Too many open files in system
Previous connection kept"


Thanks & regards,
Jothibass

timmeke 06-12-2006 09:02 AM

You won't have access to /etc/sudoers unless you're root. Only root is of course allowed to make other users "temporarily" root (using sudo) for the users he/she wants and only for certain commands.
This is logical: if it was not the case, anyone could change the sudoers file and give himself root access (security hazard). I remind you also of the fact that root access is something to be handled with extreme care.

A sudoers file from another machine may be helpful as an example, but can't be used on your machine because you'll still need root access to overwrite the /etc/sudoers file.
In other words
Code:

cp /other/machines/sudoers /etc/sudoers #or mv
won't work, unless you have root access.

Possible solutions:
* Ask for root access on the machine to a "network administrator". If you're not allowed to have it, we'll need to look at alternatives to fix your problems without reverting to root access.
* If there is no "administrator" of the machine who knows the root password, you can forcibly change it, providing you have physical access to the machine. This implies a system reboot, which may not be allowed for a critical production system and/or if other people are working on the same machine.

Quote:

Too many open files in system
There is a limitation on the number of open files any user can have on a machine (at the same time).
So, close some files. "lsof" (list of open files) can help you track down any open files.

You said you wanted to install a patch. Software installation is also left up to root in many cases (especially if it involves installing programs into directories only writable by root, like /bin).

It's likely that allocating sockets, ie for your DB, is also allowed only by root, because sockets can be used for network communication. Opening up your machine to the network, can leave it open to outside attack and thus must be "handled with care" (in other words: can be done by root only).

jothi_bass2000 06-12-2006 11:11 PM

Hai,
The problem "Too many open files in system" is observed when swiching from one database to other. While logging in I got a problem
"/bin/login : error while
loading shared libraries:libscript.so.1:cannot open shared object file : Error 23"
After this msge the terminal got hanged, Cant do anything and I manually closed it.

Thanks & regards,
Jothibass


All times are GMT -5. The time now is 08:35 PM.