LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-18-2005, 11:05 PM   #16
czon
Member
 
Registered: Aug 2005
Posts: 39

Original Poster
Rep: Reputation: 15

hmm look at this

first i edit .bash_profile
Code:
nano /home/czon/.bash_profile
change to "umask 077" and save

then...
Code:
chmod -R 700 /home/czon
mkdir testing
ls -al
drwxr-xr-x   2 czon czon      4096 2005-08-19 05:52 testing
why is it still wrong?
 
Old 08-19-2005, 04:02 PM   #17
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 364

Rep: Reputation: 33
Logout and login, also make sure there are no umask entries in other files overwriting this.
 
Old 08-19-2005, 06:17 PM   #18
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally posted by czon
Tinkster, if you bother to read both threads you will find out that i was first posting in newbie forum, BUT i got i got "help" from a guy that gave me wrong command and i got locked out from my linux account and had to boot up windoze to keep contact with the forum and my online HOWTO's.


Therefor i posted same question again, but this time in Debian just to get help from others with same OS as me.. if you really have to close one, close the thread in newbie forum, and i hope you can understand why i broke the forum rules this time.

thanks czon
I did indeed bother to read them both, but can't see your explanation
to be a good reason to start a new thread. And no, file permissions
aren't different in debian. And no, chmod and chown don't work
differently in debian, either. And no, just because it's the debian
forum people still won't necessarily be able to help faster or better
than anywhere else.


As to answer the problem as to WHY your umask doesn't work:

Chances are that you're using a terminal in an X session.
Chances are that that terminal isn't treated as a login-shell
and your umask doesn't work for that reason.
Chances are that there's a .bashrc that sets different values.

To see what umask you're REALLY using, run umask (with
no parameters at all) in that shell.



Cheers,
Tink
 
Old 08-19-2005, 10:04 PM   #19
czon
Member
 
Registered: Aug 2005
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Tinkster
I did indeed bother to read them both, but can't see your explanation
to be a good reason to start a new thread. And no, file permissions
aren't different in debian. And no, chmod and chown don't work
differently in debian, either. And no, just because it's the debian
forum people still won't necessarily be able to help faster or better
than anywhere else.


As to answer the problem as to WHY your umask doesn't work:

Chances are that you're using a terminal in an X session.
Chances are that that terminal isn't treated as a login-shell
and your umask doesn't work for that reason.
Chances are that there's a .bashrc that sets different values.

To see what umask you're REALLY using, run umask (with
no parameters at all) in that shell.



Cheers,
Tink
I still think i did the right thing, cause there was no one in newbie forum who corrected his misstake at the time and i was locked out. therefor i tryed my luck in another forum. why in debian forum? well ive posted here before and i get help that works, sometimes people here replay fast, and im using debian myself.. has nothing to do with me thinking debian people are "uber" helpers who answer faster and better then rest of the forum. i do most my post here in debian but i read alot threads from other forums to learn so i do know theres alot of good people around. (read my post in general, and if you want.. move it to feedback forum so i dont have to dubblepost again j/k

as you can see i still think im right... but i get your point and i wont dubblepost again, and i will take my time and read your rules

BTW umask do give me 0022 but theres no umask line in .bashrc
what should i do? kill x and chmod and edit .bash_profile ?

thanks, czon

Last edited by czon; 08-19-2005 at 10:06 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lock /home for other users? czon Linux - Newbie 18 08-22-2005 11:08 AM
users are lock out rude_reality Linux - Hardware 9 06-17-2005 12:24 PM
how would i safely lock users to thier home dir? f1uke Linux - Security 2 07-22-2003 01:23 AM
Lock user in their home dir MarleyGPN Linux - Software 1 04-26-2003 05:12 AM
SSH lock users to the Home Directory jasonweb Linux - Security 2 04-11-2003 06:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration