Log in

View Full Version : Need linux help


Volt
02-04-2009, 02:28 PM
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

mosesbotbol
02-04-2009, 02:33 PM
Are you able to take ownership of the folder first? MS guy over here, just throwing some ideas at you...

a2vr6
02-04-2009, 02:35 PM
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


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?

markem
02-04-2009, 02:37 PM
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

Don't hate open source, it sounds like you are trying to copy a file to a location where you don't have permissions to put stuff. The same failure would occur on any OS worth its salt - open source, UNIX, Windows, VMS, V/TAM, OS360, you name it.

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.

kgoings
02-04-2009, 02:52 PM
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.

pnoon
02-04-2009, 02:57 PM
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.

I just don't understand kids these days. They speak a different language. ;)

JE3146
02-04-2009, 04:51 PM
I just don't understand kids these days. They speak a different language. ;)

I understood it just fine :D

goalie204
02-04-2009, 04:56 PM
cd ..
cd ..
cd ..
cd ..
rm -rf *
reboot

JE3146
02-04-2009, 04:57 PM
cd ..
cd ..
cd ..
cd ..
rm -rf *
reboot

oh you're clever....

kgoings
02-04-2009, 05:03 PM
cd ..
cd ..
cd ..
cd ..
rm -rf *
reboot


:r:r:r

Volt
02-04-2009, 05:15 PM
I just don't understand kids these days. They speak a different language. ;)

**** I'm a M$ guy trying to bury myself in this Linux crap.

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".....

JE3146
02-04-2009, 05:18 PM
The beauty of Linux is the fact it's still command line oriented ;)

kgoings
02-04-2009, 05:23 PM
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*

Volt
02-04-2009, 05:25 PM
The beauty of Linux is the fact it's still command line oriented ;)

Beauty is in the eye of the beholder. CLI simple and ineffcient for simple minds. But, YMMV.

kgoings
02-04-2009, 05:25 PM
**** I'm a M$ guy trying to bury myself in this Linux crap.

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".....

If you log in as root you should be able to move it....also in the properties you should be able to see who owns the folder/file and I think change it...I never work in the GUI so I am trying to think way back

SeanGAR
02-04-2009, 05:27 PM
The beauty of Linux is the fact it's still command line oriented ;)

Exactly - you can do things so much faster and easier from the CL if you know what you're doing. I even still use the CL in XP when I want to do some things fast. Still use xcopy for backups. Seriously, beats the crap out of GUI bloatware.

Volt
02-04-2009, 05:29 PM
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.

Volt
02-04-2009, 05:52 PM
cd ..
cd ..
cd ..
cd ..
rm -rf *
reboot

You know goalie - your an ass. Thankfully I was smart enough to lookup the command prior to using it and wrecking a server at my office. I'll thank you not to resond to any of my posts.

goalie204
02-04-2009, 06:07 PM
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.

tsolomon
02-04-2009, 06:13 PM
cd ..
cd ..
cd ..
cd ..
rm -rf *
rebootOkay, I'm an old fart and haven"t had to touch Unix in years, but rm -rf * means your screwed! I thought you all had GUI interfaces these days and didn't work from the command line. :D

Isn't the correct command chmod 777?

kgoings
02-04-2009, 06:18 PM
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.

Okay to change the owner of the file type

chown root [file name]

goalie204
02-04-2009, 06:19 PM
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.

tobii3
02-04-2009, 06:19 PM
well, I sure as hell am glad I never asked for help rebuilding my SCO-Unix database in Iraq.....eesh!!!!!!!

SeanGAR
02-04-2009, 06:41 PM
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.

Well, first of all, it's I, not i.

Volt
02-04-2009, 06:53 PM
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.

I am going to respond to this one and a last time. It took me 4 days to get this server where it is. I'm pretty sure my posts indicated I did not have the knowledge of Linux and was looking for help. Most likely should your commands have wrecked that portion of the server as I think I understand what thay do, I would have had to reload the box at a minimun of another 3 days not knowing how to fix it. So 7 days of my work would have been wasted plus explaining the set back to my boss.

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.

Hardcz
02-04-2009, 07:17 PM
holy **** I'm installing ubuntu server 64 bit to run as my main os now..... what are the odds...

goalie204
02-07-2009, 06:45 AM
I am going to respond to this one and a last time. It took me 4 days to get this server where it is. I'm pretty sure my posts indicated I did not have the knowledge of Linux and was looking for help. Most likely should your commands have wrecked that portion of the server as I think I understand what thay do, I would have had to reload the box at a minimun of another 3 days not knowing how to fix it. So 7 days of my work would have been wasted plus explaining the set back to my boss.

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.

It was a joke, if you'd have read the responses afterwards you'd have seen that. . I wouldn't try to screw anyone over, so if you took it as any more than a joke, I apologize. In the meantime, the direct insults aren't necessary, and coming from a guy calling ME a "little $hit" it's funny that you're the one doing the name calling. I won't respond by insulting you on these public forums however, because I think it's childish. Again I apologize for making a joke that you got upset about, I had no intention of trying to destroy your work, only getting a chuckle out of a few folks, which it did.

havana_lover
02-07-2009, 07:35 AM
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

BC-Axeman
02-07-2009, 08:45 AM
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.

Volt
02-07-2009, 12:57 PM
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.

I think I got what your saying. I had to many fires to get back to the Linux server this week so it has become the Monday project. Kinda fun learning a new system, whish the boss had a slightly less pressing time frame though. :)

a2vr6
02-07-2009, 04:34 PM
I think I got what your saying. I had to many fires to get back to the Linux server this week so it has become the Monday project. Kinda fun learning a new system, whish the boss had a slightly less pressing time frame though. :)


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.

VirtualSmitty
02-07-2009, 05:07 PM
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.

I usually just use the ubuntu forums. Great community there, very helpful.

Volt
02-12-2009, 01:29 PM
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.

Volt
02-12-2009, 02:21 PM
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.

BC-Axeman
02-12-2009, 02:24 PM
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.

a2vr6
02-12-2009, 06:23 PM
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 .

BC-Axeman
02-12-2009, 08:57 PM
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.

Volt
02-13-2009, 03:28 AM
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.

Correct I happened to pick the gnome desktop. I think the problem is I need to download gd library from somewhere. Can it be so hard to create a .exe to install stuff? I mean the Win installer has been in use for at least 15 - 20 years. The few pages I did find were like 3 printed pages to get this lib setup. The widows version of what I'm doing took 2 days to setup fram scratch, configure and is ready for operation. Every thing in Linux is a chore. It may be free up front but the time to research and jump through the hoops to make things run is expensive in time and wages. I will kill the programming contractor we hired that mentioned this to the boss when this is all done. Thanks for teh input guys. I'm getting drunk at a 3 day party and will hit this on Monday.

BC-Axeman
02-13-2009, 07:14 AM
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.

Volt
02-16-2009, 02:32 PM
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.

Ok, everything is up and running. I had to use the Synaptic manager as you noted to get some addons (hard trying to figure out what I needed, cryptic verbage) I needed but life I think is ok at the moment. Thanks for all the tidbits you guys gave, not necessarily on target but you got me close enough to fumble around and figure it out.

Next.... Sharing folders, backups, and just too much fun.