![]() |
Need linux help
Running Ubuntu Server, Gnome desktop. LAMP running. I have a file I need to copy to /var/www/ Will not let me. Most prolly a permissions issue. I am the owner of the .trz so I'm thinking the www folder is the issue. I can't change any of the permission settings of www as I'm not the owner. Help? TIA.
PS - I hate open source and Linux...... rant over |
Re: Need linux help
Are you able to take ownership of the folder first? MS guy over here, just throwing some ideas at you...
|
Re: Need linux help
Quote:
Can't you switch over to Root user and change the permissions on the folder? This is assuming your the admin of the box, which your not? |
Re: Need linux help
Quote:
The owner of the location you want to copy to has to either A) do the copy for you; or B) give you permissions to do it yourself. In any event, you need to contact the owner of the space, which is probably the sysadmin or owner for the machine itself. |
Re: Need linux help
cd to the directory that www resides and do an "ls -lart" and see who owns the folder...probably root. you can "su -" to root if you have the password and move the folder over, or you could chmod the file so that root is the owner, or you could chmod the folder so that you own it...there are many different ways.
|
Re: Need linux help
Quote:
|
Re: Need linux help
Quote:
|
Re: Need linux help
cd ..
cd .. cd .. cd .. rm -rf * reboot |
Re: Need linux help
Quote:
|
Re: Need linux help
Quote:
:r:r:r |
Re: Need linux help
Quote:
To the others, I'll try to CLI this crap. This is so 1984, DOS v3.3 has come and gone and I have no desire to go back. The 21st century has arrived. In, seriousness though, thanks for the input. I'll try the sudo stuff and either change the permissions on the folder or the file it's self. I guess the GUI doesn't allow for it. Even the windows gui allows the option to "run as"..... |
Re: Need linux help
The beauty of Linux is the fact it's still command line oriented ;)
|
Re: Need linux help
I hate GUI's!
you have SOOOO much more control with the CLI, if you know what your doing and know the CLI you can get things done SOOO much faster. Then if your repeating the steps in the future...write a script. The only servers we have at work with GUI's are ......*shudder* Windows servers *ack* |
Re: Need linux help
Quote:
|
Re: Need linux help
Quote:
|
Re: Need linux help
Quote:
|
Re: Need linux help
My account is an "admin" account I guess. I use sudo when CLI for extra access. Root owns the WWW folder - I own teh file.
|
Re: Need linux help
Quote:
|
Re: Need linux help
Well first of all, it's "you're". Second, it was a joke, un-knot your panties please :). Third, knowing "rm" prior to installing UNIX might be a good idea.
|
Re: Need linux help
Quote:
Isn't the correct command chmod 777? |
Re: Need linux help
Quote:
chown root [file name] |
Re: Need linux help
That's what i thought too tsolomon, which is why i posted it, thinking he wouldn't get himself in trouble no matter how much of a NIX noob he was.
|
Re: Need linux help
well, I sure as hell am glad I never asked for help rebuilding my SCO-Unix database in Iraq.....eesh!!!!!!!
|
Re: Need linux help
Quote:
|
Re: Need linux help
Quote:
I'm not sure what your take on CA is but you need to grow up. Screwing people over here is generally not what we strive for and while you seem to think destroying my work is funny at the expense of a "NIX noob " I do not. My personal opinion is your a little $hit trying to hang out with the adults here. |
Re: Need linux help
holy **** I'm installing ubuntu server 64 bit to run as my main os now..... what are the odds...
|
Re: Need linux help
Quote:
|
Re: Need linux help
soooooo did you get the filed or you still having issues?? I would suggest getting yourself a good book there are several out there. Might make thing a bit easier for you.. ;)
also, forums are a great place to get help for issues we face. I do it all the time, being a system admin with a bunch of letters from things I have learned.. So when people say oh your the IT expert, I say no I am the google expert :D back to the point, you get a second option from a doctor good thing you did here as well.. I would say let things be, he apologized and you caught the mistake before it happened and that make you a good admin.. send each other a bomb and chuckle over a good cigar.. lesson learned.. :ss |
Re: Need linux help
You can always run a GUI app as root by using the command gksu before it in a CL on run app window. I use KDE instead of Gnome but if I am doing a lot of file work I use that method.
|
Re: Need linux help
Quote:
|
Re: Need linux help
Quote:
There is a great forum resource for diff Unix flavors http://www.linuxquestions.org/ . I usually check there for answers to issues I am stumped with. |
Re: Need linux help
Quote:
|
Re: Need linux help
Ok, I opened a terminal window
changed dir to /var Sudo chmod 777 www This ran in the admin mode and allowed all to write/red/exec to the www dir. May not be the most correct 755 may have been smarter, but I'll work that out in time. By using the sudo command I did not need to take ownership. Safer I guess at least for the time being. Thanks for those who provided tips. |
Re: Need linux help
God I must love pain. This Unix crap is freaking ancient and impossible to install..... You guys helped out once so here goes another.
If anyone can find a readable and easy way to install the gd library it would help me out. There are some steps out there which seemed to be the easiest sudo yum install gd , but when I run this, it says no package gd available. |
Re: Need linux help
libgd ;)
maybe libgd1 or libgd2 I'm not familiar with yum but there should be some sort of gui package manager with a search feature. |
Re: Need linux help
Have you tried going into the GUI interface and installing the packages that way? I am only familiar with Red Hat but I am sure the same exists for Ubuntu or whatever flavor your running. Or else you will need to download the actual package if yum cannot find it on your system. Try the command "yum search gd" for example or yum provides .
|
Re: Need linux help
Ubuntu is debian, so it should use "apt-get install ..." for command line and "synaptic" for a gui. If it's debian and it doesn't have synaptic then "sudu apt-get install synaptic" would take care of it. If it has KDE then "kpackage" works with whatever system it's on, but I remember you said you were using Gnome and I don't know (but it probably has) the package manager for Gnome.
|
Re: Need linux help
Quote:
|
Re: Need linux help
I think you just started out on the wrong foot. If you need any library or package then it should get installed automagically. If you are installing something you want but is not necessary and it needs other packages then those get pulled in auotmagically. You just have to use the package manager. This is "apt" in a debian system. "synaptic" is the gui front end for apt. There are others. It really is very easy and powerful. If you are installing something nonstandard you might search the web for a ".deb" package of the program. That makes it itegrate with the system wwithout you habing to do anything.
I can't understand why Windows has such a buggy and broken install system and why they have such a nonstandard way of setting up things. All *nix are much the same and have been that way before Windows could even run on a network. Once you get used to it you have to wonder why Windows makes everything so complicated and hidden. I have to give credit to MS as they have been adopting many *nix ways of doing things. |
Re: Need linux help
Quote:
Next.... Sharing folders, backups, and just too much fun. |
All times are GMT -6. The time now is 09:37 PM. |
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.