General :: Which Are Root's Startup Files
Sep 21, 2010I was going through a server hardening manual.t some interval it was mentioned that there should not be any alias for commands defined in roots startup files .
View 1 RepliesI was going through a server hardening manual.t some interval it was mentioned that there should not be any alias for commands defined in roots startup files .
View 1 RepliesAs I tried to explain on the title, what i need is to run this command "NetworkManager --no-daemon" as root every time I start my arch+gnome so that the nm-applet would show on the panel.I need to know a way to do this automaticaly each time I start my pc
View 6 Replies View RelatedIs there a way I can run 'completely' one of my script when ubuntu's desktop appears no matter if root , administrator, desktop user or an unprivileged user logged in?
What does the script do? The script mounts a partition, looks for a file in that partition and finally on the basis of that file a decision of copying a partition to another partition is made. That copying is done via
[Code]...
I am running Linux Mint 9..I play xbox live and run it through my laptops wireless network connection so i dont have to pay 100 dollars for the usb wireless adapter for the xbox. In windows 7 this is easy to configure so that when i turn my laptop on and then xbox it automatically connects.
View 10 Replies View RelatedIf I am logged in as root in a linux system and I run command rm -rf on / folder, should it remove all the files? also the kernel?
View 4 Replies View RelatedI had used test desk program to restore my files ,the files that recovered was saved in home folderthe problem is that these files are become root permission only ,so i cantcopy , move theme
View 3 Replies View RelatedI have installed a new Linux distro (just to test it) on my usb memory stick, and I'm trying to run it. I don't know if what I did is correct so far, anyways here's what I have:
Grub on sda (internal hard disk)
sdb with no boot loader (memory stick)
In grub I've been doing:
root (hd1,0)
kernel /kernel-genkernel-x86_64-2.6.37-sabayon root=/dev/sdb1 vga=normal
initrd /initramfs-genkernel-x86_64-2.6.37-sabayon
boot
This seems to work (as opposed to when I forgot the root= parameter, which almost destroyed my linux on sda1 ), but during startup the system complains about no root bein found on /dev/sdb1. I also tried (hd1,0), but it didn't change much.
I'm sure I can boot an OS from usb on my computer, so doesn anyone know what I'm doing wrong?
When i installed ubuntu. I made a seperate partition so that i could copy an ISO image onto it of an up-to-date version of ubuntu. I wanted to then boot the ISO up so i could install the version that way.I've already tried doing it through the update manager but it'll download, almost be done with installing and it freezes on me. so i figured this would be easier. However i do not know how to gain access to the other partition to copy the ISO image.
View 6 Replies View RelatedBeing relatively new both to Linux and this forum, i am sorry if i make a post that already is, evn though i couldn`t find it.My problem is i can`t move downloaded files over to root filesystem, i have downloaded and unpacked them to files. to change it`s looks and downloaded a skin, i open root, go to usr---> amsn ---> share --> skins, now i am to copy the file of the skin over to the root directory, butI also tried alt+f2, writing sudo conqueror, as an advice i got, but there was noe difference.
View 14 Replies View RelatedFor example I have "/some/dir" which contains user's files and directories. I want to check if there are any files or directories of root. I guess I should use "find" command but what's the full command to find it out?
View 2 Replies View RelatedI need a way to find all the files not owned by root:root on the commandline. How can this be done?
View 2 Replies View Relatedwhat if the root user by mistakenly stops/starts any service and tried to remove those traces from the log files and save those log files. Then how can we ensure that our log file is trusted. Is there any way where even the root(superuser) also cant edit/modify the contents of the /var/log/* files.
View 2 Replies View RelatedHow is it possible that I get perm denied when I'm copying files in console.
View 1 Replies View Relatedi tried to run lame install. on debian lenny amd64.
sudo sh /home/levi/Desktop/lame-3.98.4/install.sh
it returned errors, and i gave up on that. but it has placed a bunch of files and directories in my home folder(not in Desktop)which are owned by root. how may i delete them?
folders are
ACM
debian
Dll
doc
[Code].....
mv: cannot move ..... to ... No such file or directory. which i at least FEEL is certainly not the case.
Right now by default iam logged in with my account and i want to access some files/folders in my machine, but iam unable to access(also no copy/paste) those because iam not logged in as root user. So is there a way to gain root access over those files/folders in Ubuntu. I know i can do su in command prompt and change the permissions but what is the other way to gain root access.
View 3 Replies View RelatedA couple weeks after I installed the xfce desktop version of Linux Mint, I became unable to log in to my own desktop. I enter my password, but the screen fades to black and then fades back in to the login screen.
I am able to log in using the recovery mode terminal and everything works as expected. I can log in to the Mint desktop as root, but the superuser can't view my files. Instead, there are only a .desktop file and a README telling me that my files have been unmounted (they're not on their own partition) and they give me instructions on how to remount them.
So I follow the instructions. Running the .desktop through the browser GUI quickly opens and closes a terminal, doing nothing. Running ecryptfs-mount-private, as the README recommends, reports:
Code:
ERROR: Encrypted private directory is not setup properly
And that's where I'm stuck.
Being a system administrator i came across a statement as "Excluding temporary directories /tmp and /var/tmp, no root owned files should be in world writable directories"While the above statement may look straight forward but how would i check if there are any such directories in the distribution?
View 14 Replies View Relatedi have inherited a mixed bag of sorts: several xp users updating an access mdb with the BE on a lamp stack shared via samba. i have a backup device which gets mounted at: /media/disk... each client record (has) a folder by the companyname on the samba share, and all relative documents are placed there. when the backup script runs, it just copies newer or missing files.
someone has been renaming folders, and not matching the folder name to the related companyname from the mdb. so...the backup script captures and duplicates the data in the renamed folders. some client records also have periods in the name (not required from a data pov), such as 'Company Ltd.' instead of 'Company Ltd'. i can produce a list of company names as the folders should be found easily enough, but get a little stuck with the linux scripting.
i can easily remove and further prevent any unwanted punctuation in the company name on the client record, and create the correct folder name on the samba share with vba, but would also like to:
-for each 'client activity' folder on the backup device
-rename the folder by removing punctuation marks
or
-delete the folder if is a dupe
i tried: ls -al | grep '&' - it properly returns only those lines with an ampersand in the folder name, but returns all folders when i try that with a '.'.
what would be the easiest method to do the renaming? i thought if there was a way to change ownership of the mounted device, then the vba code (easy to write) would be simple.
OK - i just ran chown -R on the external device, changing ownership to (me) instead of root. didn't want to because it took too long, but can now use the MoveFolder method of the filesystemobject from my app to do the renaming instead of some sort of bash script (which i was dreading).
I need to run a few simple commands at the startup of my computer. (need to run as root if possible without needing to enter login's infos)
Basicly, the commands are about the same line, so i'll just post one: screen -S Name1 -L -d -m php -f /root/mainloop.php config.php
On a Fedora Core box, I have a normal non-privileged user and I also have sole access to the root account. Because I am the only administrator of this box, I frequently su over to root for administrative tasks. The problem is that many of the user configuration I've become accustomed to are only configured on my day-to-day account (.vimrc, .bashrc, .screenrc, etc). Other than giving my day-to-day user account privileges to perform administration tasks, how would I go about sharing configuration between these two accounts?
View 1 Replies View RelatedI am looking for Windows Search equivalent looking for file name patterns (not file contents but file names)....
I am aware of "globbing" and wildcard recursive search functionality in ls but I am still not capable of finding files under directories.
for example: I want to find all files starting with a string lsnr* under root directory / and any sub-directories.....
ie I want to look for files like lsnr*.* anywhere under / and any sub-directories under / such as /dir1/dir2/dir4 and dir1/other/dir/someotherdir/sub-dir etc.
so if I have /dir1/lsnrcontrol and also have /dir1/dir/2/dir3/lsnr-tinit.dat then I want to list the files names etc.
how to do this using ls -R and wildcards.
Recently installed some minor software, some games and Ubuntu Tweak, I am not sure if that's what caused this issue or not. I shutdown after the installations, then when I tried to start back up the small, white ubuntu logo appears just like it normally does, then it just goes to a black screen. I turned off the computer and restarted in (Recovery Mode). It goes about its thing then it says it is waiting for root file system, then after about 30 seconds it says "Gave up waiting for Root File System" how to fix this without reinstalling?
View 2 Replies View RelatedI am trying to run my script at startup but it doesn't run the script as root. Do I need to add my root username and password in the script, or somewhere else?
View 1 Replies View RelatedI'm trying to enable a few of the powertop suggestions at boot. My plan had been to put the changes in /etc/rc.local, but it appears possible that some of the changes are happening too early in the boot process to take effect. Specifically
echo 1 > /sys/devices/system/cpu/sched_mc_power_savings and cd /sys/devices; find . -name link_power_management_policy -print0|xargs --null -n 1 -I{} -t bash -c "echo "min_power" > "{}""
both work if run with sudo permissions after I've logged in. where to put these such that they'll take effect on boot? Or can I put a sleep in the rc.local?
There is a script that I want to run as root when the machine boots up(which starts the Redhat Certificate System services). The problem I have is if I put this on rc.local it wont run because I havent logged in as root. Is there a way that I can run this without logging in as root at the machine startup?
View 5 Replies View RelatedCan anyone tell me how to make this script,( located in /etc/init.d/tomcat ) startup at boot time under the tomcat user and not the root user?
#!/bin/bash
# tomcatStartup Script for Tomcat
# chkconfig: 2345 20 80
# description: Tomcat Server basic start/shutdown script
# processname: tomcat
# pidfile: /var/run/tomcat.pid
[Code]...
I work for a company that makes portable devices running Linux and I was recently asked to make the underlying file system read-only for "security" purposes. Since the distribution is based on LinuxFromScratch, I know that very little writing happens at run time. So, even if the device runs on a usb flash device, I doubt that putting the root file system RO will be that beneficial. I am actually more concerned about a process actually breaking because it cannot open a file in RW mode than a process going rogue and filling the root file system with log files, etc. I'd really like to ear what kind of advantages disadvantages there really is with read-only file-systems.
View 6 Replies View Relateda server at work has been accessed through the desktop environment as root. I know this is a risk and since I have never done it before I was wondering if there are any files created by the desktop that could compromise the system and how could I clean it up.
View 2 Replies View RelatedI m new to setup the CVS in linux , i have tried lots but every time whenever i try to commit the change in module or file this error has been generated : cvs [commit aborted]: 'root' is not allowed to commit files.
View 1 Replies View RelatedI've been stuck in startup for two months and have tried much of the advice found on the forums but still no luck! I have a live disc but I REALLY need to recover files from my existing (but inoperable) system! this is exactly what the screen says upon startup...
[Code]...