Fedora :: Must Change Directory Before Running Scripts?
Jan 14, 2010
ive started writing scripts to launch some of my programs, but am having mixed results. i am saving them all in the /bin folder (is this typical?). for about half of the scripts they run fine from the terminal home directoy, however for the other half i must " cd /bin" before i can run "sh script". im not quite sure why this is happening.
View 2 Replies
ADVERTISEMENT
Jul 15, 2009
I just upgraded to fedora core 11. I need to change the permission of the html folder. The owner is currently set to root. Since there is no longer a root user (I just found out) it will not let my user account change the permissions in that directory from. How do you change directory permissions in fedora 11?
View 2 Replies
View Related
Dec 25, 2010
Yesterday I installed Fedora 14 on my computer. I was able to log in as root on a terminal fine until this morning. Now when I log in I get this:
Code:
[Silverback@Vanessa ~]$ su -
Password:
su: warning: cannot change directory to /root: No such file or directory
-bash-4.1#
I haven't deleted any files, so I have no idea how to fix this.
View 4 Replies
View Related
Oct 13, 2009
I am trying to install VMware on my machine. I have downloaded VMware and I am now trying to configure it. After accepting the EULA, the program states;
Code:
None of the pre-built vmmon modules for VMware Server is suitable for your running kernel. Do you want this program to try to build the vmmon module for your system (you need to have a C compiler installed on your system)? [yes] y Then;
Code:
Using compiler "/usr/bin/gcc". Use environment variable CC to override. What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include] The path "/usr/src/linux/include" is not an existing directory. What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include] /usr/bin/gcc The path "/usr/bin/gcc" is not an existing directory. What is the location of the directory of C header files that match your running kernel?[/usr/src/linux/include] How do i find where the C header files are?
View 14 Replies
View Related
Nov 20, 2009
How do I permission a folder?I have a group called serveradmin..I want to add and give the group server admin write permissions to folder /logs.I know how to permission a file.. but changing the folder permissions isn't coming to me.I must add that I don't want to remove any of the current permission on the folder/directory.
View 1 Replies
View Related
Oct 23, 2010
So I have created a Bash script with the intent of the program to change the names of the files in a folder's subdirectory.The code recognises the individual subdirectories, then is able to enter into one and list the files individually, but when it tries to change their information it says;' cannot stat ' : ' No such file or directory 'As if it is looking in the directory that contains the Bash script, not its subdirectory.It is essentially saying, I see a file here called FILE but sorry, I can't change FILE because FILE doesn't exist. kweh?Is this something outside the capabilities of Bash? Am I asking too much of it? Can Bash only manipulate files that are in the same folder as the script?
Code:
#!/bin/bash
echo enter directory
[code]....
View 6 Replies
View Related
Feb 6, 2011
I was installing yum from the server folder. first i copied the server folder in a folder which was at root then i change the current directory to server and then create a repo by using following command
Server]# rpm ivh createrepo then tab to get the correct name
then ]# createrepo .
]#cd /etc/yum.repos.d/
]# cp -apr rhel_debug_info.repo yum.repo
]# vi yum.repo
[Code]...
how can i completely install the yum so that i can install my necessary packages
View 1 Replies
View Related
Nov 2, 2009
When I booted up this morning the contents of my Home directory are all showing up on my desktop, and there is no single Home folder. How did this change, and how can I change it back so that the Home folder is on my Desktop with the contents inside of *it*?
View 5 Replies
View Related
Sep 12, 2009
When I try to login as a user, I get the dreaded "500 OOPS: cannot change directory:". Almost every posting I can find related to this problem was due to SELinux being enabled. My SELinux is operating in permissive mode. So why can't it open the home directory when I log in as the tarheelnk user?
Code:
[root@server1 home]# ls /home/ -l
total 36
-rw------- 1 root apache 7168 2009-09-11 16:24 aquota.group
-rw------- 1 root apache 7168 2009-09-11 16:30 aquota.user
drwx------ 2 root root 16384 2009-09-11 10:07 lost+found
drwsrws--- 4 tarheelnk apache 4096 2009-09-11 14:58 tarheelnk
code....
View 1 Replies
View Related
Nov 4, 2010
I've known some GNU/Linux distros, like Fedora, Ubuntu, SUSE and etc for a long time, but never installed/used one.
I'm having a problem almost every time i try to install something that requires the use of the Terminal.
I'll give you the example of LibreOffice. I downloaded the LibreOffice Linux version from their official website and saved it in the "Download" directory. I extracted the files and I got a "en-US" folder, I didn't know what to do next, so I googled and found this and others sites (which had basically the same steps): [url] I'm stuck at the first step "Change into the ~/Downloads directory.". So how do I do this in the Terminal?
View 6 Replies
View Related
Sep 30, 2010
I have a Dell laptop which originally was strictly a Windows computer; with a LiveCD of PCLinuxOS, I partitioned the drive to make room for dual boot with Linux. Unfortunately, I gave the Root directory too much space, and Home not enough. Is it possible to move anything over to Root to give Home more room? I would get rid of Windows entirely, but for a couple of programs that have no Linux equivalent (at least that I've discovered so far).
View 2 Replies
View Related
Mar 19, 2011
My machine telling me that my home directory is running out space,It is said 95% in usage.Try to delete the big unwanted files in users (just two user in my machine),df ing, but the home usage status keep on 95%.
View 9 Replies
View Related
Dec 10, 2010
I'm trying to get Apache to run in a user's home directory. I changed the conf file so that Apache runs under the user and group "kiosk" and changed the DocumentRoot and Directory from the default to "/home/kiosk". Then I set Apache to start at boot (chkconfig --level 235 httpd on) and rebooted. When I checked, httpd is running as kiosk like it should (ps aux | grep httpd). However, when I try wget localhost, I get a 403 response back. If as root I call "httpd -k stop" and then "httpd -k start", then everything works exactly as it should (curiously, if I try using "-k restart", it still doesn't work). After this, httpd still shows as running as kiosk and if I check before calling start, it shows no httpd processes running as expected.
This only happens when I use httpd to stop and then start the web server. If I try to restart using apachectl I still get a 403 error. As an interesting aside, after I've used httpd, if I try using "apachectl restart" I get a "(13)Permission denied: Error retrieving pid file run/httpd.pid" error. This is all on a freshly installed CentOS 5.5 server. Why I'm seeing this very different behaviour from what I thought were just equivalent ways of starting Apache? And then what I could do to get it to start up and run properly on boot? One last item to mention is this isn't a permissions problem. I set the permissions to 777 to both the home and kiosk directories (and 666 to the web files) just to be sure that's not the problem.
View 4 Replies
View Related
Aug 6, 2011
Spotify released a native linux client about a year ago. It would be awesome if I could use it on my linux desktop at work. Unfortunately, these computers are managed by a central server and so I can't install anything without system admin rights. I was wondering if there was a binary available that I could run from my home directory? The operating system we use is openSUSE 11.3 64-bit.
View 1 Replies
View Related
Jul 15, 2010
I'm in a different type of shell (this is inside "screen"), I guess. It is like this:
Code:
sh-3.2$ cd /home/user
sh-3.2$
It doesn't change the directory.
View 6 Replies
View Related
Mar 27, 2011
How do I change to the directory /ect so I can add a path variable to the file called environment?
View 2 Replies
View Related
Mar 16, 2011
I just installed the 11.4 version after using numerous previous versions. During this install the /usr directory was placed in a separate partition. How would I go about placing it in the partition with all the other running directories?
View 7 Replies
View Related
Oct 9, 2010
I have my hard drive arranged with a single large ntfs data partition and a number of smaller partitions for /home etc. Here's the line in fstab:
Code:
/dev/disk/by-id/ata-SAMSUNG_HD103SJ_S246J9FZ806954-part2 /home/shmuck/data ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
But the ownership for that directory is root and I can't change it for some reason, using this line:
Code:
sudo chown -R shmuck /home/shmuck/data
It just doesn't do anything.
View 7 Replies
View Related
Jun 18, 2010
no matter what i do in there terminal when it comes to changing directorys or copying items it just dont work.this is what im typing
PHP Code:[code]...............
View 3 Replies
View Related
Jan 7, 2011
i used to use synaptic to install packages which seems to be installed somewhere like /usr/bin or /usr/local/bin, so my question is can i change the default or pre-determined installation directory, coz my partition / is kind of short of space.
View 8 Replies
View Related
Jun 29, 2010
In the old days of M$-DOS, there was the NCD (Norton Change Directory) utility. Anything of the sort in Linux?Explanatory note: you typed out the name of the directory you wanted to go to, that is, last element of the dir path.And you were, ipso facto, in that dir. If that was the only one by that name, good. When not, and if that wasn't the intended dir, you typed the same command again and you were in a second dir of that name. If this was the intended dir, good. And so on. It simply maintained a data base with the whole tree, and updated it when invoked from a newly created dir o by means of an option, NCD/R.
View 14 Replies
View Related
Jan 4, 2011
I have 3 images made by clonezilla now I want to restore 1 of them, but when I try to use clonezilla to restore, there's no option to restore image. I can see the images in home directory and file is owned by root in my home directory. I'm trying to transfer image to usb hdd.
Did I place image in wrong directory or is it permissions problem.
View 8 Replies
View Related
Jul 27, 2010
I can change to a nother directory in home folder using cd command.I have several partitions in my hard drive.But i want to know ho to cheng to a directory in nother partition or flash drive using command line.how can i do that
View 6 Replies
View Related
Jun 29, 2010
want to change my log server directory /var/log/secure to any other places.
View 1 Replies
View Related
Sep 28, 2010
My directory structure is
/3dmodels/work/work
While I am changing to last work directory it's giving th error as:
550 Failed to change directory.
I have tried selinux issues,permission issues, anon issues,chroot issues but no solution.
Is there anything to do more than these issue ?
I am logging in as localuser. I can browse all the contents of 2nd work directory except the last work directory.
But in internet browser all works well,I can change into the last work directory and can also browse the directory but unable in command line.
View 10 Replies
View Related
Jun 30, 2010
second day ever using command line so bare with me. I setup a cloud server through rackspace hosting..I installed vsFTPd and made a user and password and set the home directory to /var/www for this user When I try connecting via FileZilla, I get this error
Response:220 (vsFTPd 2.0.5)
Command:USER arms2o10UseR
Response:331 Please specify the password.
Command:PASS **************
Response:500 OOPS: cannot change directory:/var/www/
I have been looking at all different forums and have tried multiple things like through selinux, chowning etc..
View 8 Replies
View Related
Jan 18, 2011
1. I have two domains domain1.com and domain2.com on my centos server.
2. In a file in domain1.com I am writing the php function
chdir('/var/www/vhosts/domain2.com/httpdocs'); but it is not working at the same time if I am trying to change the directory to one of the subdirectory in domain1.com than it is working means chdir('/var/www/vhosts/domain1.com/httpdocs/css'); is working.
3. The problem is I cant able to change the directory from domain1.com to domain2.com. /var/www/vhosts/domain1.com/httpdocs => /var/www/vhosts/domain2.com/httpdocs is not working
Is it some permission issue or anything else ? Is it something related to chroot jail or what?
View 1 Replies
View Related
May 31, 2010
I setup a download directory on my server, and put a test video in it. I tried to run the video in my browser and it only runs part of the video then stops. If I download it and run it on my desktop with mplayer it run the full video. I am not sure why? Here is a link to the video. [URL]. Before I setup more videos I wanted to see if there is an answer to this problem.
View 5 Replies
View Related
Oct 4, 2010
I have the following cron entry but it doesn't seem to be running:
Code:
The script does exist. And so does the directory /home/usr/log and writable. /var/log/syslog only has a bunch of these:
Code:
I don't see any file gets written to the log directory. That suggests to me that cron didn't run the job, as confirmed by /var/log/syslog.
View 9 Replies
View Related
Dec 18, 2010
I have a server with Fedora 13 with which I would like to get NFS working. I have looked up multiple howto's and tutorials, but I'm having a problem not addressed by any of them.Official how-to, another how-to, and another how-to.I have verified that nfs-utils, nfs-utils-lib, portmap, and system-config-nfs are installed and running. I have verified that I have, in fact, shared the directory that I want to share, and that the proper permissions are set.
I had to go through some gyrations to get the Belkin wireless N router to allow my server to have a static IP. However, I can ping the server from the nfs client (a toshiba satellite running mint 8), and vice versa. I have (for now) disabled firewalls on both computers. I think I have disabled SELinux on Fedora 13 (for now).When I attempt to connect to the server from the client, the output looks like this:Quote:
aragorn ~ # mount -v 192.168.2.101:/test /home/kelev/test/
mount: no type was given - I'll assume nfs because of the colon
mount.nfs: timeout set for Sat Dec 18 12:21:09 2010
[code]....
View 7 Replies
View Related