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
[Reply]
mosesbotbol 03:33 PM 02-04-2009
Are you able to take ownership of the folder first? MS guy over here, just throwing some ideas at you...
[Reply]
a2vr6 03:35 PM 02-04-2009
Originally Posted by Volt:
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?
[Reply]
markem 03:37 PM 02-04-2009
Originally Posted by Volt:
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.
[Reply]
kgoings 03:52 PM 02-04-2009
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.
[Reply]
pnoon 03:57 PM 02-04-2009
Originally Posted by kgoings:
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.
:-)
[Reply]
JE3146 05:51 PM 02-04-2009
Originally Posted by pnoon:
I just don't understand kids these days. They speak a different language. :-)
I understood it just fine
:-)
[Reply]
goalie204 05:56 PM 02-04-2009
cd ..
cd ..
cd ..
cd ..
rm -rf *
reboot
[Reply]
JE3146 05:57 PM 02-04-2009
Originally Posted by goalie204:
cd ..
cd ..
cd ..
cd ..
rm -rf *
reboot
oh you're clever....
[Reply]
kgoings 06:03 PM 02-04-2009
Originally Posted by goalie204:
cd ..
cd ..
cd ..
cd ..
rm -rf *
reboot
:-):-):-)
[Reply]
Originally Posted by pnoon:
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".....
[Reply]
JE3146 06:18 PM 02-04-2009
The beauty of Linux is the fact it's still command line oriented
:-)
[Reply]
kgoings 06:23 PM 02-04-2009
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*
[Reply]
Originally Posted by JE3146:
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.
[Reply]
kgoings 06:25 PM 02-04-2009
Originally Posted by Volt:
**** 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
[Reply]
SeanGAR 06:27 PM 02-04-2009
Originally Posted by JE3146:
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.
[Reply]
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.
[Reply]
Originally Posted by goalie204:
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.
[Reply]
goalie204 07:07 PM 02-04-2009
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.
[Reply]
tsolomon 07:13 PM 02-04-2009
Originally Posted by goalie204:
cd ..
cd ..
cd ..
cd ..
rm -rf *
reboot
Okay, 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.
:-)
Isn't the correct command chmod 777?
[Reply]