• Post Reply Bookmark Topic Watch Topic
  • New Topic

Setting Up a Linux J2EE Dev Environment  RSS feed

 
Josh Rehman
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings. I chose to untar the J2SDK-EE 1.3.1
under /usr/java, creating the directory
/usr/java/j2sdkee1.3.1 directory. I am using
Mandrake Linux 8.2 and bash.
The situation is that I don't want to develop
as root. I've defined a "josh" account. However,
when I am logged in as "josh" I cannot run anything
mainly because I do not have permissions on those
directories and files.
Basically I want to put on my "root" hat and make
it so that "josh" (and possibly a hypothetical group
of developers) can develop on this system.
I think I need to define a group (say, jdev),
add "josh" to it, then recursively change the group of
everything under my /usr/java directory to jdev.
Finally, I need to change the access of these
elements appropriatly. I would like to avoid giving
full permissions to *everything*, so I will need to
know what I can change (e.g. read only access
to system jars, documentation, etc).
But I don't know how to do these things in Linux,
and I don't know which parts of the J2EE distro
can be protected.
 
Josh Rehman
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It appears that the root issue is my understanding
of file permissions under Linux. If anyone else
has similiar issues, there is at least one
explaination at:
File Permissions Stuff
 
Dave Van Even
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The best thing would be to create a group 'jdev' like you mentioned
for example #groupadd -g 600 jdev
then make yourself member of that group
open '/etc/group' (as root) and you'll see all groups on your system in this format
groupname:x:group-id:additional user,additional user,...
in your case you'll have to add your name like this
jdev:x:600:josh

Now you're a member of 'jdev', only thing left is change ownership of the files
chown -R jdev:jdev /usr/java/j2sdkee1.3.1
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!